On Sun, 13 Sep 1998, Robert Zilbauer wrote:
> > On my system (SunOS 4.1.4 running Exim 2.02), those 4 statements produce the
> > following:
> >
> > incoming quota string == 20k
> > beginning quota value == 559120.000000
> > calculated quota value == 572538880.000000
> > returned quota value == 572538880
> >
> > Unfortunately, my knowledge of C is far too rusty to understand why. As
> > always, any suggestions would be most welcome.
On Mon, 14 Sep 1998, Jeffrey Goldberg wrote:
> That seems bizzare. A test of strtod() might be in order. Attached is
> a small program for running strtod.
On my SunOS 4.1.4 machine Jeff's program gives bizzare results, unless I
#include <math.h> (or <floatingpoint.h>.
Although man strtod says #include <stdlib.h>, I find that strtod is
declared in /usr/include/floatingpoint.h, which is only included by
/usr/include/math.h.
Another case where it seems Phil will have to cover up for this
broken OS :-(
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
A.C.Aitchison@??? http://www.dpmms.cam.ac.uk/~werdna
--
*** Exim information can be found at
http://www.exim.org/ ***