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 --- extract.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extract.c') diff --git a/extract.c b/extract.c index 365f73f..d906536 100644 --- a/extract.c +++ b/extract.c @@ -6,13 +6,13 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/29 00:10:36 by cacharle #+# #+# */ -/* Updated: 2019/11/05 23:43:33 by cacharle ### ########.fr */ +/* Updated: 2019/11/10 10:33:33 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "header.h" -char *extract_flags(t_pformat *pformat, char *fmt) +const char *extract_flags(t_pformat *pformat, const char *fmt) { if (*fmt == '\0') return (fmt); @@ -37,7 +37,7 @@ char *extract_flags(t_pformat *pformat, char *fmt) return (fmt); } -char *extract_width(t_pformat *pformat, char *fmt) +const char *extract_width(t_pformat *pformat, const char *fmt) { if (*fmt == '\0') return (fmt); @@ -56,7 +56,7 @@ char *extract_width(t_pformat *pformat, char *fmt) return (fmt); } -char *extract_precision(t_pformat *pformat, char *fmt) +const char *extract_precision(t_pformat *pformat, const char *fmt) { if (*fmt == '\0' || *fmt != '.') return (fmt); @@ -72,7 +72,7 @@ char *extract_precision(t_pformat *pformat, char *fmt) return (fmt); } -char *extract_length_modifier(t_pformat *pformat, char *fmt) +const char *extract_length_modifier(t_pformat *pformat, const char *fmt) { if (fmt[0] && fmt[0] == 'l') { -- cgit