This project has been created as part of the 42 curriculum by gargrigo.
ft_printf is a custom implementation of the standard C printf() function from the C standard library.
The goal of this project is to recreate the behavior of printf() by handling formatted output and variable arguments using stdarg.h.
This project helps deepen understanding of:
-
Variadic functions (va_list, va_start, va_arg, va_end)
-
Format parsing
-
String and number manipulation
-
Low-level output using write()
To compile the library, run:
makeThis will create a static library file named libftprintf.a.
Include the header in your source code:
#include "ft_printf.h"Compile your program with the library:
cc your_program_name.c -L. -lftprintfAI was used in the following parts of this project:
- README.md creation: AI assistance was used to structure and write the README.md file according to 42 School requirements, including formatting and section organization.
All code implementations were written manually by the student, with AI used only for creating README.md file and understanding requirements.