|
libft
|
Parses and handles format specifiers for ft_printf. More...
#include "libft.h"
Include dependency graph for process_format_string.c:Functions | |
| static void | parse_and_handle_specifier (t_fmt *fmt, va_list *args, t_pf *pf) |
| Delegates the specifier to the appropriate formatter. | |
| static void | process_conv_spec (const char **format, va_list *args, t_pf *pf) |
Parses a single conversion specifier after %. | |
| void | process_format_string (const char *format, va_list *args, t_pf *pf) |
| Walks through the format string and dispatches format handlers. | |
| static void | reset_fmt (t_fmt *fmt) |
| Resets the format context for the next conversion. | |
Parses and handles format specifiers for ft_printf.
This module implements the parsing logic for the custom ft_printf function. It scans the format string, identifies conversion specifiers, resets formatting context, and dispatches printing to the appropriate handler functions based on the type.
Supported specifiers: c, s, d, i, u, x, X, %%.