How julenzu/printf-42 works
ft_printf is a small C library that formats a variadic argument list and writes directly to standard output. The main workflow is caller → format parser/dispatcher → conversion-specific printers, whose returned character counts are accumulated for the result. Numeric printers recurse and use the character printer; pointer printing delegates to string and hexadecimal printers. The excerpts show these calls and direct writes; no buffering or broader runtime subsystem is documented.
Main entry points: ft_printf.c Format dispatcher · ft_print_char.c Character output · ft_print_hex.c Hex output · ft_print_str.c String output
Components 8
Other components
- Library caller
- Public API
ft_printf.h - Format dispatcher
ft_printf.c - Character output
ft_print_char.c - String output
ft_print_str.c - Decimal output
ft_print_nbr.c - Hex output
ft_print_hex.c - Standard output
Connections 11
- Library caller → Public API: includes
README.md - Library caller → Format dispatcher: calls
README.md - Format dispatcher → Character output: dispatches to
ft_printf.c - Format dispatcher → String output: dispatches to
ft_printf.c - Format dispatcher → Decimal output: dispatches to
ft_printf.c - Format dispatcher → Hex output: dispatches to
ft_printf.c - Decimal output → Character output: prints digits via
ft_print_nbr.c - Hex output → Character output: prints digits via
ft_print_hex.c - Hex output → String output: prints null via
ft_print_hex.c - Character output → Standard output: writes bytes
ft_print_char.c - String output → Standard output: writes bytes
ft_print_str.c