version test pour part2
This commit is contained in:
@@ -95,7 +95,13 @@ char **ft_split(char const *s, char c)
|
||||
int len;
|
||||
|
||||
w = 0;
|
||||
if (!s || !(array = (char **)malloc(sizeof(char *) * 1000 * (count(s, c) + 1))))
|
||||
// if (!s)
|
||||
// {
|
||||
// array = malloc(sizeof(char*));
|
||||
// array[0] = 0;
|
||||
// return (array);
|
||||
// }
|
||||
if (!s || !(array = (char **)malloc(sizeof(char *) * (count(s, c) + 1))))
|
||||
return (NULL);
|
||||
while (*s != '\0')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user