I want to create a function to split a text using a separator in C.
Two parameters text and separator will be passed to the function and the function should return an array of chars.
For example if the string is Hello Word of C and the separator is a white space.
Then the function should return,
0. Hello
1. Word
2. of
3. C
as an array of chars.
Any suggestions?