|
libft
|
Parses format specifications for ft_printf. More...
#include "libft.h"
Include dependency graph for setup_format.c:Functions | |
| static void | parse_flags (const char **format, t_fmt *fmt) |
| Parses format flags and sets corresponding bits. | |
| static void | parse_precision (const char **format, t_fmt *fmt) |
Parses precision (e.g., %.5d). | |
| static int | parse_specifier (const char **format, t_fmt *fmt) |
| Validates and stores the conversion specifier. | |
| static void | parse_width (const char **format, t_fmt *fmt) |
Parses field width (e.g., %10d). | |
| int | setup_format (const char **format, t_fmt *fmt) |
| Parses a full format specification (flags, width, precision, specifier). | |
Parses format specifications for ft_printf.
This module extracts formatting instructions (flags, width, precision, and specifier) from the format string and stores them into a t_fmt structure for use by the ft_printf handlers.
Supported flags: #, 0, -, +, Supported specifiers: %, c, s, p, d, i, u, x, X