aboutsummaryrefslogtreecommitdiff
path: root/printer.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-28 04:15:16 +0100
committerCharles <sircharlesaze@gmail.com>2019-10-28 04:15:16 +0100
commitf6ee1462e26d723cf5d53157eadaff2804d18c3a (patch)
tree366ba00a09afe4b7d21c55ee25fd98030b2cd5a5 /printer.c
parentfeb71e200972bb78fe86130629ef040ef80811a7 (diff)
downloadft_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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printer.c b/printer.c
index cacfbd5..8884c00 100644
--- a/printer.c
+++ b/printer.c
@@ -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)
{