An open API service indexing awesome lists of open source software.

https://github.com/mdbentaleb/ft_printf_42

🖥️ Ft_printf is a custom C implementation of printf, supporting various format specifiers and reinforcing knowledge of variadic functions, format specifiers, and memory management 💾
https://github.com/mdbentaleb/ft_printf_42

1337school 42network cprogramming ft-printf-42 printf variadic-functions

Last synced: 8 months ago
JSON representation

🖥️ Ft_printf is a custom C implementation of printf, supporting various format specifiers and reinforcing knowledge of variadic functions, format specifiers, and memory management 💾

Awesome Lists containing this project

README

          

# Ft_printf - 42 Network Project

Ft_printf is a custom implementation of the `printf` function in C. It supports a variety of format specifiers, allowing for formatted output of strings, integers, characters, and other data types. This project reinforces understanding of variadic functions, format specifiers, and memory handling.

🚀 **Features**
- Implements custom `printf` functionality with support for various format specifiers (`%d`, `%i`, `%s`, `%c`, `%x`, `%X`, `%p`, `%u`).
- Handles variadic arguments, making it possible to print multiple data types in a single call.
- Supports custom formatting options like padding, alignment, and precision.

🛠️ **Getting Started**

**Prerequisites**
To get started, ensure you have the following installed:
- A C compiler like `gcc` or `clang`
- `make` for building the project
- A UNIX-like operating system (Linux/macOS/WSL)

### 1. Clone the Repository
```bash
git clone https://github.com/mdbentaleb/Ft_printf_42.git
cd Ft_printf_42
```

### 2. Compile the Project
After cloning the repository, run the following command to compile the project:
```bash
make
```

### 3. Clean Up
To remove the compiled files:
```bash
make clean
```