refactoring functions parsing main flags

This commit is contained in:
Maoake Teriierooiterai
2026-01-13 08:17:50 +01:00
parent f8f1b43539
commit cfdf913c4b
5 changed files with 12 additions and 84 deletions

View File

@@ -28,7 +28,7 @@ static int verif_atoi(const char *nptr)
i = 0;
tmp = 0;
before = 0;
if (ft_strncmp("-2147483648", nptr, 12))
if (ft_strncmp("-2147483648", nptr, 15))
return (1);
while ((nptr[i] >= 9 && nptr[i] <= 13) || nptr[i] == ' ')
i++;