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 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: <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 Precedence: bulk > 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.