I want to look at the problem of tokenizing a string. Calling strtok() changes the original string by placing '\0' in lieu of the tokens. I was wondering if there was a trick to avoid this. I want to leave the original string intact and preferably don't want to copy it either.
Looking at this answer on SO, what does this poster mean??
C strtok() split string into tokens but keep old data unaltered - Stack Overflow