42-archive/42-piscine-c/d07/ex04/main.c
2016-08-25 20:50:28 +02:00

15 lines
295 B
C

#include <stdio.h>
int count_words(char *str);
char **ft_split_whitespaces(char *str);
int main()
{
char *phrase = " \t m\ny name is\t hello\n\t world\t \n";
char **table = ft_split_whitespaces(phrase);
printf("%s\n", phrase);
while (*table)
printf("%s, ", *table++);
return 0;
}