[lug] localtime() returns pointer - free it?

Michael J. Hammel mjhammel at graphics-muse.org
Thu Nov 30 09:21:38 MST 2000


Thus spoke Tkil
> so far as i know, this is a common response.  as i mentioned above,
> this interface is not thread-safe; there might be alternatives that
> *are* thread-safe, and those would probably have different interfaces
> as well as probably adding the requirement that you provide the
> structure to be filled in.

I've never really worried about being threadsafe since I've never written
threaded code, but for argument sake - is there an alternative for
retrieving local time that *is* thread safe?

-- 
Michael J. Hammel           |
The Graphics Muse           |  Why do croutons come in airtight packages?  It's
mjhammel at graphics-muse.org  |  just stale bread to begin with.
http://www.graphics-muse.com 




More information about the LUG mailing list