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

Tom Tromey tromey at cygnus.com
Thu Nov 30 22:09:39 MST 2000


>>>>> "Tkil" == Tkil  <tkil at scrye.com> writes:

Tkil> [ ... ]
Tkil> so it looks like the "_r" versions were designed for exactly this
Tkil> situation, where you want thread-safe versions of the originals.
Tkil> (furthermore, the "_r" apparently stands for "reentrant".)

Yes, many non-thread-safe functions have _r variants.

Tkil> my box at home doesn't seem to have these functions in the man
Tkil> pages, but i would presume that glibc 2.2 has them.  anyone want
Tkil> to check?

It definitely does.

Tom




More information about the LUG mailing list