diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-10-28 04:15:16 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-10-28 04:15:16 +0100 |
| commit | f6ee1462e26d723cf5d53157eadaff2804d18c3a (patch) | |
| tree | 366ba00a09afe4b7d21c55ee25fd98030b2cd5a5 /printer.c | |
| parent | feb71e200972bb78fe86130629ef040ef80811a7 (diff) | |
| download | ft_printf-f6ee1462e26d723cf5d53157eadaff2804d18c3a.tar.gz ft_printf-f6ee1462e26d723cf5d53157eadaff2804d18c3a.tar.bz2 ft_printf-f6ee1462e26d723cf5d53157eadaff2804d18c3a.zip | |
reformed pformat struct, rename t_flist
Diffstat (limited to 'printer.c')
| -rw-r--r-- | printer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ char *convert_to_str(t_pformat *pformat, va_list ap) t_conversion conversion = pformat->conversion; str = NULL; - if (pformat->min_width.wildcard.exist) + if (pformat->min_width.wildcard) { pformat->min_width.value = va_arg(ap, int); if (pformat->min_width.value < 0) @@ -22,7 +22,7 @@ char *convert_to_str(t_pformat *pformat, va_list ap) pformat->min_width.value *= -1; } } - if (pformat->precision.wildcard.exist) + if (pformat->precision.wildcard) pformat->precision.value = va_arg(ap, int); if (conversion == CONVERSION_CHAR) { |
