correction de split pour retour valeur de null
This commit is contained in:
@@ -20,9 +20,7 @@ void print_ft_split(char *str, char c)
|
||||
|
||||
printf("split : [%s] [%c] -> ", str, c);
|
||||
tab = ft_split(str, c);
|
||||
// while (*tab != NULL) sans verifier que tab est malloc
|
||||
// printf("[%s]", *(tab++));
|
||||
while (tab && *tab != NULL)
|
||||
while (*tab != NULL)
|
||||
printf("[%s]", *(tab++));
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user