remplace 32 par espace dans atoi
This commit is contained in:
@@ -21,7 +21,7 @@ int ft_atoi(const char *str)
|
|||||||
i = 0;
|
i = 0;
|
||||||
n = 1;
|
n = 1;
|
||||||
nbr = 0;
|
nbr = 0;
|
||||||
while ((str[i] == 32) || (str[i] > 8 && str[i] < 14))
|
while ((str[i] == ' ') || (str[i] > 8 && str[i] < 14))
|
||||||
i++;
|
i++;
|
||||||
if (str[i] == '-')
|
if (str[i] == '-')
|
||||||
n = -1;
|
n = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user