From d63d6916249f5b40b81097854d8ca2c9d4d7d071 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 30 Oct 2019 23:35:40 +0100 Subject: Normed converters --- printer.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'printer.c') diff --git a/printer.c b/printer.c index 6ee88ff..4b5ae43 100644 --- a/printer.c +++ b/printer.c @@ -6,16 +6,16 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/28 23:19:24 by cacharle #+# #+# */ -/* Updated: 2019/10/30 18:04:06 by cacharle ### ########.fr */ +/* Updated: 2019/10/30 23:30:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include #include #include +#include "libft.h" #include "header.h" - char *convert(t_pformat *pformat, va_list ap) { char *str; @@ -89,25 +89,6 @@ char *handle_padding(t_pformat *pformat, char *str) return (tmp); } -/* char *handle_nbr_padding(t_pformat *pformat, char *str) */ -/* { */ -/* char *tmp; */ -/* int len = ft_strlen(str); */ -/* int i; */ -/* */ -/* if (!(IN_STR("+-", str[0]) && pformat->flags & FLAG_ZERO_PADDING)) */ -/* return (str); */ -/* tmp[0] = str[0]; */ -/* len--; */ -/* i = 1; */ -/* while (i < pformat->min_width - len) */ -/* tmp[i++] = '0'; */ -/* ft_strcpy(tmp + i , str + 1); */ -/* ft_strcpy(str, tmp); */ -/* free(tmp); */ -/* return (str); */ -/* } */ - char *handle_precision(t_pformat *pformat, char *str) { int len; -- cgit