Exam to recreate the base of the printf function.
ft_printf is the project in the first ring at 42. We practice using loops, if conditions, flag identification. Variadic functions are introduced in this project. The main goal is to structure code meaningfully and start thinking Libft functions can be used in subsequent projects.
The only requirements are:
- GNU make (v3.81)
- GCC (12.0.0) (clang-1200.0.32.28)
Those versions are the ones used during development.
-
Download/Clone this repo
git clone https://github.com/qduong42/42_ft_printf
-
cd
into the root directory and runmake
cd 42_ft_printf make
After running make, the libftprintf.a library with printf and Libft functions can be used.
- Only use C
- Must respect the 42 imposed coding style The Norminator
- No memory leaks
- Implement ft_printf
- Must have a Makefile to build the program
- The library must be called libftprintf.a
- Must have a header file ft_printf.h
- malloc, free, write, va_start, va_arg, va_copy, va_end
I tried to make the solution as simple and intuitive as possible. I saw some 'overengineered' solutions
Enjoy!