Article View: comp.std.c
Article #1283Re: strtoul question
From: Doug Gwyn
Date: Fri, 25 May 1990 16:22
Date: Fri, 25 May 1990 16:22
9 lines
847 bytes
847 bytes
In article <UaLHQb200as9AS60EP@andrew.cmu.edu> ghoti+@andrew.cmu.edu (Adam Stoller) writes: >What exactly (if one can use that term) is the strtoul() function >supposed to return when handed a string like "-987654" ? It's supposed to return ULONG_MAX + 1 - 987654. As I mentioned in my posting about results of the NYC X3J11 meeting, strtoul() overflow can occur only on conversion of the magnitude, not on the negation phase of the conversion.
Technical Details
Message-ID:
<12998@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!ames!haven!adm!smoke!gwynReferences:
<UaLHQb200as9AS60EP@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: strtoul question Message-ID: <12998@smoke.BRL.MIL> Date: 25 May 90 16:22:02 GMT References: <UaLHQb200as9AS60EP@andrew.cmu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9