2003-08-19 10:39:20

by peter enderborg

[permalink] [raw]
Subject: strtok non reentrant

Why do the 2.4 kernel having the non reentrant strtok() functions? Is
there any reason at all not to have
strtok_r() instead?


2003-08-19 10:55:06

by Sean Neakums

[permalink] [raw]
Subject: Re: strtok non reentrant

peter enderborg <[email protected]> writes:

> Why do the 2.4 kernel having the non reentrant strtok() functions? Is
> there any reason at all not to have
> strtok_r() instead?

You probably want strsep(). strtok() seems to be deprecated.