Suppose i want to read a line from a file, one by one. I want to split the line into tokens, which space (' ') delimiter.
First line is : Probability allows us to quantify uncertainty and randomness in a principled way.
I want to write a function (getToken) which would take a char* as input, indicating where it should start
* Then returns a char* pointing to a string which is a copy of the next token
* If the function succeeds, it returns a C string (delimited by '\0')
* containing the token. Else it returns 0.
I want to recursive call this function until line ends, how would the logic behind this go.