int main(void) { char **w; w = string_to_words("Believing in negative thoughts is the single greatest obstruction to success.\n#cisfun!"); if (w == NULL) { printf("Function failed\n"); return (1); } print_array_of_strings(w); return (0); }
int main(void) { char *a[] = { "Life", "is", "full", "of", "surprises,", "so you may as well get used to it", NULL }; print_array_of_strings(a); return (0); }
int main(void) { char **w; char xxx[] = "./okay now what"; w = string_to_words(xxx); if (w == NULL) { printf("ok now?"); } print_array_of_strings(w); return (0); }