delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/25/07:10:44

Date: Tue, 25 Nov 1997 14:09:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Anton Helm <tony AT nt DOT tuwien DOT ac DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: strange behavior of difftime()
In-Reply-To: <3.0.5.32.19971125000726.00979ea0@hal.nt.tuwien.ac.at>
Message-ID: <Pine.SUN.3.91.971125140938.27505W-100000@is>
MIME-Version: 1.0

On Tue, 25 Nov 1997, Anton Helm wrote:

> From the above quote I would assume that there is no restriction on
> time0 and time1, especially the standard doesn't assume that time1 > time0.
> 
> Why does difftime() from the DJGPP library produce erronous results
> if time0 > time1 ??????

It's a bug.  I already fell into this same trap when I was porting GNU
`tar'.  DJGPP v2.02 will have this corrected.  A patched version
should be available from Tom Demmer's libc site.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019