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
