/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet #include "libft.h" int main(int argc, char **argv) { char **splitted; char *a; char c; if (argc < 2) return (1); a = argv[1]; c = argv[2][0]; splitted = ft_split(a, c); while (*splitted != NULL) { puts(*splitted); free(*splitted); splitted++; } return (0); }