This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
glibc as a shared object vs. strtok
- From: "StanisÅaw T. Findeisen"<sf181257 at students dot mimuw dot edu dot pl>
- To: libc-help at sourceware dot org
- Date: Thu, 05 Feb 2009 21:24:28 +0100
- Subject: glibc as a shared object vs. strtok
Hello
I am having a question regarding strtok:
#include <string.h>
char *strtok(char *str, const char *delim);
The manual page says it is not thread safe because it uses a static
buffer. The question is: how come this function can be a part of a
shared object, and thus be shared among multiple processes?
Thanks!
STF
=======================================================================
http://eisenbits.homelinux.net/~stf/ . My PGP key fingerprint is:
9D25 3D89 75F1 DF1D F434 25D7 E87F A1B9 B80F 8062
=======================================================================