Subject: Re: THREAD SAFETY section
To: Klaus Klein <kleink@ira.uka.de>
From: Todd Vierling <tv@pobox.com>
List: tech-userlevel
Date: 09/11/1998 08:14:54
On 11 Sep 1998, Klaus Klein wrote:
: > For instance, strtok() would be hard to make make thread-safe, I
: > think.
Partly, that's why strtok_r() was invented in various standards.
: It wouldn't be hard; allocating a piece of thread-specific storage to
: store the internal `last' pointer is easy enough.
If we want to do so; however, I believe that strtok() is specifically said
to be unsafe in the SUS98 under threads anyway....
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)