Re: time in threaded programs
On Mon, 28 Jan 2008 00:53:32 -0600, Ian Collins wrote
(in article <605cfbF1ohsu3U5@mid.individual.net>):
> CBFalconer wrote:
>> JLeidel wrote:
>>>
>>> time( &cur_time );
>>> localtime_r( &cur_time, my_time );
>>> ...
>>>
>>> segfaults on the `localtime_r` call.
>>
>> Bad call. From N869:
>>
> Why?
Probably due to him jumping the gun again and not seeing the _r part.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw
|