[lkml]   [2001]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
On Sat, Jan 20, 2001 at 11:28:51PM +0100, Andi Kleen wrote:
> On Sat, Jan 20, 2001 at 04:58:56PM -0500, Sandy Harris wrote:
> > I suspect that I've misunderstood some constraint here. Perhaps the more complex
> > code you posted is necessary, but I'd like to know why.
> strtok is not reentrant and cannot be nested this way without
> saving __strtok. strsep would work.

But be careful:

strsep() in kernel skips zero length strings, but strsep
glibc wouldn't do.


Ingo Oeser

Note: I implemented it to replace strtok and even did a patch to
replace all occourences of it, but got no response and so stopped
working on this issue. If there is still interest, I would do
it again.
10.+11.03.2001 - 3. Chemnitzer LinuxTag <>
<<<<<<<<<<<< come and join the fun >>>>>>>>>>>>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.062 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site