"Bill Cunningham" <> wrote in message
news:4eb329c1$0$14136$ ...
> I just read that some new function called strsep that I've never heard
> of has replaced strtok and strtok is now evidently deprecated. Is this C99
> or some other standard? strsep...got me.
>
From my limited use of strsep(), one major difference between strsep() and
strtok()... is that strtok() will skip over a run of characters that are
delimiter characters, and strsep() will return a null string for each
additional delimiter character. Also, as pointed out by others, strtok()
saves internal state and thus is *not* thread safe.
--
+<><><><><><><><><><><><><><><><><><><>+
| Charles Richmond
|
+<><><><><><><><><><><><><><><><><><><>+