This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Internal get{pw,gr}XX calls


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]