diff --git a/src/print/ft_printf/ft_printf_padding.c b/src/print/ft_printf/ft_printf_padding.c index 3112fb4..951b47c 100644 --- a/src/print/ft_printf/ft_printf_padding.c +++ b/src/print/ft_printf/ft_printf_padding.c @@ -6,7 +6,7 @@ /* By: brda-sil cur_type[ft_strlen(conf->cur_type)] = sign; 0x10 + %-6x '10 ' %-#6x '0x10 ' %-06x '10 ' %-#06x '0x10 ' + %6x ' 10' %#6x ' 0x10' %06x '000010' %#06x '0x0010' + +%6d ' 10' +%06d '000010' +%-6d '10 ' +%-06d '10 ' + +%6s ' 0x10' +%-6s '0x10 ' */ void ft_printf_type_padding_hex(t_fmt_conf *conf) @@ -48,8 +58,22 @@ void ft_printf_type_padding_hex(t_fmt_conf *conf) (void)conf; } +void ft_printf_type_padding_integer(t_fmt_conf *conf) +{ + (void)conf; +} + +void ft_printf_type_padding_string(t_fmt_conf *conf) +{ + (void)conf; +} + void ft_printf_type_padding(t_fmt_conf *conf) { if (conf->fmt_type & (FMT_HEX | FMT_HEXA)) ft_printf_type_padding_hex(conf); + else if (conf->fmt_type & (FMT_DIGI | FMT_INTE)) + ft_printf_type_padding_integer(conf); + else if (conf->fmt_type & FMT_STRI) + ft_printf_type_padding_string(conf); } diff --git a/test/src/print.c b/test/src/print.c index 610c637..0e85db4 100644 --- a/test/src/print.c +++ b/test/src/print.c @@ -6,7 +6,7 @@ /* By: brda-sil