modif un isnumber

This commit is contained in:
hugogogo
2022-05-14 15:27:34 +02:00
parent d622367cfd
commit e5793d2251

View File

@@ -8,6 +8,8 @@ int ft_isnumber(char *nb)
i = 0;
if (nb[i] == '+' || nb[i] == '-')
i++;
if (nb[i] == '\0')
return (0);
while (nb[i] != '\0')
{
if (ft_isdigit(nb[i]) == 0)