blob: 97375e9663d38692f7e63fcd0e1994a62a774348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Assignment name : ft_split
Expected files : ft_split.c
Allowed functions: malloc
--------------------------------------------------------------------------------
Write a function that takes a string, splits it into words, and returns them as
a NULL-terminated array of strings.
A "word" is defined as a part of a string delimited either by spaces/tabs/new
lines, or by the start/end of the string.
Your function must be declared as follows:
char **ft_split(char *str);
|