How nyaro30/printf works
ft_printf is a small C library that scans a format string, consumes variadic arguments, dispatches conversions, writes output, and returns the character count. It has separate mandatory and bonus implementations (both export ft_printf), with bonus parsing for flags, width, and precision. The graph preserves the documented conversion and formatting stages; links among unsampled helpers are omitted where their call sites are not evidenced.
Main entry points: ft_printf.c Mandatory printf · ft_print_bonus_part3.c Conversion dispatch · ft_putchar.c Character output · ft_printf_bonus.c Bonus printf
Components 16
Printf entry points
- Mandatory printf
ft_printf.c - Bonus printf
ft_printf_bonus.c
Format parsing
- Flag parser
ft_parse_bonus.c
Conversion handlers
- Conversion dispatch
ft_print_bonus_part3.c - Char and string
ft_print_bonus_part1.c - Numeric formatting
ft_print_bonus_part2.c - Pointer formatting
ft_print_bonus_part3.c
Output primitives
- Bonus helpers
ft_utils_bonus.c - Bonus helpers
ft_utils_bonus2.c - Character output
ft_putchar.c - String output
ft_putstr.c - Signed decimal
ft_putnbr.c - Unsigned decimal
ft_putnbr_unsigned.c - Hexadecimal
ft_putnbr_hex.c - Pointer output
ft_putptr.c
Other components
- Calling program
Connections 18
- Calling program → Mandatory printf: calls
README.md - Calling program → Bonus printf: calls
README.md - Mandatory printf → Character output: writes via
ft_printf.c - Mandatory printf → String output: dispatches to
ft_printf.c - Mandatory printf → Signed decimal: dispatches to
ft_printf.c - Mandatory printf → Unsigned decimal: dispatches to
ft_printf.c - Mandatory printf → Hexadecimal: dispatches to
ft_printf.c - Mandatory printf → Pointer output: dispatches to
ft_printf.c - Bonus printf → Flag parser: parses with
ft_printf_bonus.c - Bonus printf → Conversion dispatch: dispatches to
ft_printf_bonus.c - Conversion dispatch → Char and string: dispatches to
ft_print_bonus_part3.c - Conversion dispatch → Numeric formatting: dispatches to
ft_print_bonus_part3.c - Conversion dispatch → Pointer formatting: dispatches to
ft_print_bonus_part3.c - Char and string → Character output: writes via
ft_print_bonus_part1.c - Numeric formatting → Bonus helpers: uses helpers
ft_print_bonus_part2.c - Numeric formatting → Character output: writes via
ft_print_bonus_part2.c - Pointer formatting → Bonus helpers: uses helpers
ft_print_bonus_part3.c - Pointer formatting → Character output: writes via
ft_print_bonus_part3.c