Go to the source code of this file.
◆ calc_num_len()
| static int calc_num_len |
( |
long |
num, |
|
|
int |
base, |
|
|
t_fmt * |
p_ret |
|
) |
| |
|
static |
Definition at line 16 of file parse_opt_num.c.
23 if (p_ret->
f_hash && num != 0)
size_t ft_strlen(const char *s)
int get_numstr_base(char *buf, size_t num, int base, bool is_upper)
char str_buf[STR_BUF_LEN]
◆ parse_num_type()
| static bool parse_num_type |
( |
char |
fmt, |
|
|
t_fmt * |
p_ret |
|
) |
| |
|
static |
Definition at line 44 of file parse_opt_num.c.
46 if (fmt ==
'd' || fmt ==
'i')
50 else if (fmt ==
'x' || fmt ==
'X')
◆ parse_opt_num()
| bool parse_opt_num |
( |
char |
fmt, |
|
|
va_list * |
args, |
|
|
t_fmt * |
p_ret |
|
) |
| |
Definition at line 60 of file parse_opt_num.c.
static int calc_num_len(long num, int base, t_fmt *p_ret)
static bool parse_num_type(char fmt, t_fmt *p_ret)