Hello Andrew,

which errors may occur depends on the POSIX system you use, just compare

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fgettod.htm

http://www.manpagez.com/man/2/gettimeofday/

http://illumos.org/man/3C/gettimeofday

Best regards

Heinrich Schuchardt

On 01.07.2013 21:54, Andrew Makhorin wrote:
Hi Heinrich,

if gettimeofday fails it returns -1,
if gmtime fails it returns NULL.

To avoid segmentation faults, please, provide error handling as follows:


Thank you for suggestion.

However, under which circumstances gettimeofday may fail? Most likely
(as I replied to Jiri) that it was a bug specific to mingw64 version of
gettimeofday.


Andrew Makhorin





_______________________________________________
Bug-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to