A custom implementation of the C standard library function printf.
This project was developed as part of the 42 curriculum, with the goal of recreating the core functionality of printf while gaining a deeper understanding of variadic functions, formatted output, and low-level C programming concepts.
- Supports the following conversions:
%c: Prints a single character%s: Prints a string%p: Prints a pointer address%d/%i: Prints a decimal (base 10) integer%u: Prints an unsigned decimal (base 10) integer%x/%X: Prints a number in hexadecimal (lowercase/uppercase)%%: Prints a literal percent sign
- Handles variadic arguments with
<stdarg.h>. - Mimics standard
printfbehavior as closely as possible.
- Clone the repository:
git clone https://github.com/your-username/ft_printf.git cd ft_printf