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.