Quote:
BUGS
Never use this function. This function modifies its first
argument. The identity of the delimiting character is
lost. This function cannot be used on constant strings.
|
From the man pages of strtok.
If you want to preserve the string being used, first make a copy and then use the copy to do your dirty work.
You could also, if so inclined, write your own version of strtok as well.
