ft_printf is a custom implementation of the C standard library’s printf function. The goal is to understand what happens behind a higher-level function by rebuilding it from scratch — working directly with variadic arguments and low-level output.

The implementation handles the format specifiers %c, %s, %p, %d, %i, %u, %x, %X, and %%, with one file per specifier and a main entry point that parses the format string and dispatches to the right handler.

What I learned: how variadic functions work in C, how formatted output is constructed at a low level, and how to structure a project cleanly with one responsibility per file.

Peer feedback:

“Well explained and thought out code. Nice use of libft functions! Good test main and Makefile.”

— Peer evaluator, 42 London

View on GitHub