delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/23/09:58:43

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 23 Feb 2004 09:58:20 -0500
Message-Id: <200402231458.i1NEwKwm020904@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <4039DD96.3F36F3B7@yahoo.com> (message from CBFalconer on Mon, 23
Feb 2004 11:03:03 GMT)
Subject: Re: Fibonacci number
References: <d7c3a0b2 DOT 0402220759 DOT 34d6435d AT posting DOT google DOT com> <4038E8CA DOT 6491815E AT virginia DOT edu> <4039DD96 DOT 3F36F3B7 AT yahoo DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> BTW the following shows up a glitch in DJGPP 2.03 system.  Calling
> the program with an argument of -1 returns the overflow condition,
> because strtoul returns ULONG_MAX rather than 0.  Cross-posted to
> comp.os.msdos.djgpp for this.

strtoul is *supposed* to return ULONG_MAX if it detects a range error.

- Raw text -


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