This project is focused on recreating the printf function from the C standard library. Through this implementation, you will gain an understanding of variadic functions, how formatted output works, and how to handle different data types dynamically.
In this project, you will:
- Implement a function similar to
printf
with support for various format specifiers. - Learn about variadic functions using
stdarg.h
. - Handle different data types, including:
%c
→ Single character%s
→ String%p
→ Pointer address%d
/%i
→ Signed decimal integer%u
→ Unsigned decimal integer%x
/%X
→ Hexadecimal representation%%
→ Percent sign
- Understanding and implementing variadic functions.
- Managing formatted output efficiently.
- Deepening knowledge of memory management and buffer handling.
- Preparing for future projects where ft_printf will be reused.
-
Clone the repository:
git clone https://github.com/msabr/FT_PTINTF_1337 cd FT_PTINTF_1337
-
Build the mandatory part:
make
make clean
: remove object files.make fclean
: remove the program and object files.make re
: rebuild everything.