How atemur/printf works
ft_printf is a small C formatting library: callers pass a format string and variadic values, the implementation scans the string, dispatches supported specifiers, and writes output while accumulating a character count. The header declares the public entry point; formatting and output helpers are implemented in two source files. The README documents the supported conversions. The excerpts show the main dispatch and helper calls; no separate modules are needed to represent this runtime.
Main entry points: ft_printf.c Format Scanner · tool.c Output Helpers · ft_printf.h Public Declaration
Components 5
Other components
- Caller
- Public Declaration
ft_printf.h - Format Scanner
ft_printf.c - Specifier Dispatch
ft_printf.c - Output Helpers
tool.c
Connections 5
- Public Declaration → Format Scanner: declares
ft_printf.h - Caller → Format Scanner: calls
ft_printf.c - Format Scanner → Specifier Dispatch: dispatches
ft_printf.c - Format Scanner → Output Helpers: writes literals
ft_printf.c - Specifier Dispatch → Output Helpers: emits values
ft_printf.c