From 60ebf2933397d917c0ce970657b4fabe0e6c1f81 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sat, 24 Jul 2021 14:43:49 +0200 Subject: [PATCH] remplace 32 par espace dans atoi --- srcs/ft_atoi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/ft_atoi.c b/srcs/ft_atoi.c index 74da199..01660a9 100644 --- a/srcs/ft_atoi.c +++ b/srcs/ft_atoi.c @@ -21,7 +21,7 @@ int ft_atoi(const char *str) i = 0; n = 1; nbr = 0; - while ((str[i] == 32) || (str[i] > 8 && str[i] < 14)) + while ((str[i] == ' ') || (str[i] > 8 && str[i] < 14)) i++; if (str[i] == '-') n = -1;