How come in all my c++ books, the explanation of strtok and it's arguments is as follows:
"The first call to strtok contains two arguments... The second argument, " ", indicates that tokens ... are separated by spaces."
Now why does it work if you include something like this:
tokenPtr = strtok(string, ",, ;, :, !, ?, \t, \n, -, ") where you still technically have only 1 argument, but there is a lot more than a space in between " ".
Isn't that cheating sort of? Who ever found out that it works, and why does it work???????
Just curious so please help me out here. Thanks.