This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: glibc as a shared object vs. strtok
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-help at sourceware dot org
- Cc: "StanisÅaw T. Findeisen" <sf181257 at students dot mimuw dot edu dot pl>
- Date: Thu, 5 Feb 2009 15:41:25 -0500
- Subject: Re: glibc as a shared object vs. strtok
- References: <498B4AFC.5090004@students.mimuw.edu.pl>
On Thursday 05 February 2009 15:24:28 StanisÅaw T. Findeisen wrote:
> 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?
writable data isnt shared among processes
-mike