I've found some strtok example on the net, which is this: http://www.phim.unibe.ch/comp_doc/c_...MPLES/strtok.c
I can easly understand the code and I've already adapted it to my own code, however, there's something I don't understand, which is this line (more exactly the thing in bold):
while ( (sub_string=strtok(NULL, " ")) != NULL)
How come strtok() will get the other strings out of test_string if only I have there in the function parameter is NULL? Where does he get the data from?
Just want to understand that...