View Single Post
Old Jun 29th, 2005, 6:11 PM   #2
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 137
Rep Power: 0 L7Sqr is an unknown quantity at this point
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.
__________________
"...and though our kids are blessed their parents let them shoulder all the blame."
- The Quiet Things That No One Ever Knows [BrandNew]
L7Sqr is offline   Reply With Quote