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

Michael J. Hammel mjhammel at graphics-muse.org
Wed Nov 29 23:22:01 MST 2000


I noticed tonight that localtime() returns a pointer to a struct tm
pointer.  Is the caller responsible for freeing the memory associated with
that structure?  Is the Linux behaviour (whether I need to free the space
or not) consistant with other Unix platforms?
-- 
Michael J. Hammel                               The Graphics Muse 
mjhammel at graphics-muse.org                      http://www.graphics-muse.com
------------------------------------------------------------------------------
The main accomplishment of almost all organized protests is to annoy people 
who are not in them. -- Unknown.




More information about the LUG mailing list