View Single Post
Old Jun 30th, 2005, 12:48 PM   #4
conbrio
Newbie
 
Join Date: Apr 2005
Posts: 10
Rep Power: 0 conbrio is on a distinguished road
Thanks for alerting me to that L7Sqr. I looked at its man page and noticed that there is apparently something of a replacement for strtok() anyway (strsep()).

Ancient Dragon, that code works fine, thanks. I wasn't aware that if one incremented the pointer strstr() returns, it'd move to the next occurance of the substring..

The man page is kind of cryptic on the matter.

RETURN VALUE
       The  strstr()  function returns a pointer to the beginning
       of the substring, or NULL if the substring is not found.

Thanks again.
conbrio is offline   Reply With Quote