Hi, can someone please clarify if I can call strtok like below:

ptr = strtok (originalStr, "");

and it should work the same as this?

prt = strtok (originalStr, " ");

I want to tokenize strings separated by a space. And from what I understand of the specifications in the standard, the two versions shouldn't work the same right? Actually, the first version shouldn't work at all?

I'm using the second version now. And the 1st version doesn't seem to work on the compiler I'm using. But someone's telling me that the first one should work the same. Is this some weird exception in the specification or it only works with some compilers? Thanks for any help.