[arm-gnu] localtime() crashes
qxc at gmx.de
qxc at gmx.de
Wed Jul 4 05:10:31 UTC 2012
OK, I solved that problem: localtime() / gmtime() internally use malloc() which is not available within my environment but using gmtime_r() / localtime_r() everything is fine.
But there is my next problem: when calling strftime() the targete char array stays empty, the time string is not generated. Seems like this function is not implemented?
-------- Original-Nachricht --------
> Datum: Tue, 03 Jul 2012 17:36:52 +0200
> Von: qxc at gmx.de
> An: arm-gnu at codesourcery.com
> Betreff: [arm-gnu] localtime() crashes
> Hi,
>
> there is a strange crash when I call localtime((time_t*)&sys_time) - here
> sys_time is unsigned int. Is localtime function not supported? Or do I need
> a special linker option?
>
> Thanks!
> _______________________________________________
> arm-gnu mailing list
> arm-gnu at codesourcery.com
> http://sourcerytools.com/cgi-bin/mailman/listinfo/arm-gnu
More information about the arm-gnu
mailing list