ft_printf
is a reimplementation of the standard printf
function in C, handling formatted output with variable arguments. It reproduces most of the original functionality while managing output conversion and formatting manually, without using the standard C library functions.
This project deepens your understanding of variadic functions, format parsing, and low-level output operations.
- Variadic functions with
stdarg.h
- Format string parsing and handling flags
- Number and string conversion
- Output to standard output using
write()
- Memory and type safety in C
- Manual base conversion and precision/width control
%c
– Character%s
– String%p
– Pointer address%d
/%i
– Signed decimal integer%u
– Unsigned decimal integer%x
/%X
– Unsigned hexadecimal (lower/upper)%%
– Percent sign
make