aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-10 10:37:51 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-13 09:00:43 +0100
commit3f2ef05278d42233f0a9ee9652e152824a7103e4 (patch)
tree8fde8cdc22ffd77f1d23b35830d51bba129d70ad /parse.c
parentdafee6410a4ecd7400a83adf84ded3621f30a365 (diff)
downloadft_printf-3f2ef05278d42233f0a9ee9652e152824a7103e4.tar.gz
ft_printf-3f2ef05278d42233f0a9ee9652e152824a7103e4.tar.bz2
ft_printf-3f2ef05278d42233f0a9ee9652e152824a7103e4.zip
ft_printf write to buffer instead of instant write
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index 42c192a..beb48e5 100644
--- a/parse.c
+++ b/parse.c
@@ -6,13 +6,13 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);