tgrekov-fdf
HIVE fdf May 2024
|
Definition in file parse_subspec.c.
Go to the source code of this file.
Functions | |
void | init_subspec (t_subspec *subspec) |
Sets initial values for a s_subspec that are not always set elsewhere. | |
static void | parse_lenmod (const char **format, t_subspec *subspec) |
Parse the length modifier for the sequence. | |
static int | subspec_parse_width_or_precision (const char **format, va_list args) |
Parse inline or variable argument width or precision. | |
void | parse_subspec (const char **format, t_subspec *subspec, va_list args) |
Parse flags, width, precision, and length. | |
void init_subspec | ( | t_subspec * | subspec | ) |
Sets initial values for a s_subspec that are not always set elsewhere.
[in,out] | subspec |
Definition at line 31 of file parse_subspec.c.
References s_subspec::force_decimal, s_subspec::forced_sign, s_subspec::left_justify, s_subspec::lenmod, s_subspec::min_width, s_subspec::pad_str, and s_subspec::precision.
|
static |
Parse the length modifier for the sequence.
[in,out] | format | |
[in,out] | subspec |
Definition at line 48 of file parse_subspec.c.
References s_subspec::lenmod.
void parse_subspec | ( | const char ** | format, |
t_subspec * | subspec, | ||
va_list | args | ||
) |
Parse flags, width, precision, and length.
[in,out] | format | |
[in,out] | subspec | |
[in,out] | args |
Definition at line 99 of file parse_subspec.c.
References s_subspec::force_decimal, s_subspec::forced_sign, ft_isdigit(), ft_strchr(), s_subspec::left_justify, s_subspec::min_width, s_subspec::pad_str, parse_lenmod(), s_subspec::precision, and subspec_parse_width_or_precision().
|
static |
Parse inline or variable argument width or precision.
[in,out] | format | |
[in,out] | args |
int | Parsed value for width or precision. |
Definition at line 77 of file parse_subspec.c.
References ft_atoi(), and ft_isdigit().