Skip to contentSkip to conversation

strtok non reentrant

DISCUSSION peter enderborg 2 participants 2 messages Aug 19, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · peter enderborg

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.