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 💾
- Host: GitHub
- URL: https://github.com/mdbentaleb/ft_printf_42
- Owner: mdbentaleb
- Created: 2024-12-01T10:45:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-30T16:58:30.000Z (11 months ago)
- Last Synced: 2025-07-30T19:17:23.523Z (11 months ago)
- Topics: 1337school, 42network, cprogramming, ft-printf-42, printf, variadic-functions
- Language: C
- Homepage: https://github.com/mdbentaleb/Ft_printf_42
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```