On Sun, Jul 23, 2006 at 09:40:29PM +0200, Nicolas George wrote:
> > Always check return codes. gettimeofday() *can* fail (most likely,
> > tv1 and/or tv2 are bum pointers that don't point where you think).
>
> As a matter of fact, no, it can not, at least as long as its second argument
> is NULL:
On Sun, 23 Jul 2006 21:40:29 +0200, Nicolas George said:
>
> > Always check return codes. gettimeofday() *can* fail (most likely,
> > tv1 and/or tv2 are bum pointers that don't point where you think).
>
> As a matter of fact, no, it can not, at least as long as its second argument
> is NULL:
>
>
> Always check return codes. gettimeofday() *can* fail (most likely,
> tv1 and/or tv2 are bum pointers that don't point where you think).
As a matter of fact, no, it can not, at least as long as its second argument
is NULL:
# RETURN VALUE
#
# The gettimeofday() function shall return 0 and no
On Sat, 22 Jul 2006 23:30:13 PDT, heavenscape said:
Not strictly a gtk question, but a general C programming question.
What the heck, I'm waiting for a box to reboot... ;)
> gettimeofday(&tv1,NULL);
int rc;
if (!(rc = gettimeofday(&tv1,NULL)) {
printf ("gettimeofd
e:
Elapsed time is: -1140166903 seconds
Elapsed time is: -1140114602 seconds
...
Anyone knows why?
--
View this message in context:
http://www.nabble.com/funny-gettimeofday-tf1986993.html#a5453117
Sent from the Gtk+ - General forum at Nabble.com.
___
gtk