ecriture du main part2 avance a mapi
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user