How sylvzzz/ft_printf works
This is a small C printf-style formatting library. A caller passes a format string and variadic arguments to ft_printf, which dispatches supported conversions to output routines and returns the number of characters reported. The routines cover characters, strings, signed and unsigned decimals, hexadecimal, pointers, and literal percent signs. Supporting string utilities are included, though ft_strchr is not shown participating in formatting. The map follows excerpted calls; the README is empty.
Main entry points: ft_printf.c Format processor · ft_putchar_fd.c Character output · ft_putnbr_u_fd.c Unsigned decimal · ft_putnbr_fd.c Signed decimal
Components 11
Format dispatch
- Format processor
ft_printf.c
Output routines
- Character output
ft_putchar_fd.c - String output
ft_putstr_fd.c - Signed decimal
ft_putnbr_fd.c - Unsigned decimal
ft_putnbr_u_fd.c - Lowercase hex
ft_puthex.c - Uppercase hex
ft_puthex_m.c - Pointer output
ft_putptr.c
String utilities
- Character search
ft_strchr.c - String length
ft_strlen.c
Other components
- Library caller
Connections 13
- Library caller → Format processor: calls
ft_printf.c - Format processor → Character output: dispatches
ft_printf.c - Format processor → String output: dispatches
ft_printf.c - Format processor → Signed decimal: dispatches
ft_printf.c - Format processor → Unsigned decimal: dispatches
ft_printf.c - Format processor → Lowercase hex: dispatches
ft_printf.c - Format processor → Uppercase hex: dispatches
ft_printf.c - Format processor → Pointer output: dispatches
ft_printf.c - String output → Character output: writes via
ft_putstr_fd.c - Signed decimal → Character output: writes via
ft_putnbr_fd.c - Unsigned decimal → Signed decimal: recurses via
ft_putnbr_u_fd.c - Unsigned decimal → Character output: writes via
ft_putnbr_u_fd.c - Character search → String length: measures with
ft_strchr.c