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

17 lines
355 B
C

#include <stdio.h>
char **ft_split(char *str, char *charset);
int main()
{
int i = 0;
char *phrase = " k my name isk hellokk worldk";
char *charset = "mk";
char **table = ft_split(phrase, charset);
printf("phrase = '%s'\n", phrase);
printf("charset = '%s'\n", charset);
while (table[i] != 0x0)
printf("'%s'\n", table[i++]);
return 0;
}