Internal get{pw,gr}XX calls

Pierre A. Humblet Pierre.Humblet@ieee.org
Tue Dec 10 06:27:00 GMT 2002


Corinna Vinschen wrote:
> 
> On Fri, Nov 29, 2002 at 01:11:34PM -0500, Pierre A. Humblet wrote:
> > This is from the opengroup:
> > If the correct value is outside the range of representable values,
> > LONG_MAX or LONG_MIN is returned (according to the sign of the value),
> > and errno is set to [ERANGE].
> 
> Pierre, can you give me a link to this info?
> 
http://www.opengroup.org/onlinepubs/007908799/xsh/strtol.html

That's probably moot by now, using strtoul seems to be the way to go. 
I am still surprised that it accepts negative numbers as input.

Pierre



More information about the Cygwin-patches mailing list