|
From: | Heinrich Schuchardt |
Subject: | Re: [Bug-glpk] Segfault in jday function |
Date: | Mon, 01 Jul 2013 22:02:02 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |