From 3f2ef05278d42233f0a9ee9652e152824a7103e4 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 10 Nov 2019 10:37:51 +0100 Subject: ft_printf write to buffer instead of instant write --- parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 42c192a..beb48e5 100644 --- a/parse.c +++ b/parse.c @@ -6,13 +6,13 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/29 00:11:33 by cacharle #+# #+# */ -/* Updated: 2019/11/05 23:46:02 by cacharle ### ########.fr */ +/* Updated: 2019/11/13 08:13:02 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "header.h" -int parse(char *format, t_flist **flist) +int parse(const char *format, t_flist **flist) { t_flist *tmp; t_pformat *parsed; @@ -34,10 +34,10 @@ int parse(char *format, t_flist **flist) return (1); } -t_pformat *parse_reduced(char *fmt) +t_pformat *parse_reduced(const char *fmt) { t_pformat *pformat; - char *start; + const char *start; if ((pformat = (t_pformat*)malloc(sizeof(t_pformat))) == NULL) return (NULL); -- cgit