ecriture du main part2 avance a mapi

This commit is contained in:
hugodu69
2019-12-12 02:16:13 +01:00
parent dc4502f577
commit 26708b8a2a
3 changed files with 49 additions and 29 deletions

View File

@@ -104,7 +104,7 @@ char **ft_split(char const *s, char c)
{
while (s[len] != '\0' && s[len] != c)
len++;
if (w == 3 || !(array[w++] = ft_substr(s, 0, len)))
if (!(array[w++] = ft_substr(s, 0, len)))
return (ft_free(array, w));
s += len - 1;
}