This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: strtoul(-1) discussion
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Fabrice Bauzac <libnoon at gmail dot com>
- Cc: libc-help at sourceware dot org, Alexandre Oliva <aoliva at redhat dot com>
- Date: Wed, 22 May 2013 12:49:24 -0400
- Subject: Re: strtoul(-1) discussion
- References: <CAB6Q1a-m=W4cA3WCeuB1FzFWHbistLrN3wR1hfo4mfPB9j9qJw at mail dot gmail dot com> <51619DB2 dot 10406 at redhat dot com> <CAB6Q1a_QvSAqRODp7481=q7RLjmzR1=04UW3r7D1WQmFSeYsdQ at mail dot gmail dot com> <CAB6Q1a9sz55p=Aoc+9OVpVhZ_EGia73fbLpncZChm=wiCXxsug at mail dot gmail dot com>
On 05/19/2013 02:23 PM, Fabrice Bauzac wrote:
> Hello,
>
> According to some discussion on the austin-group mailing list, it
> hopefully seems that the glibc's implementation is correct wrt POSIX.
> Therefore the patch I have sent earlier should not be included.
>
> However, it might be a good idea to document that strtoul is unable to
> distinguish "-1" from "4294967295", and recommend to use the signed
> variant strtol or to manually check the presence of the minus sign.
>
> I'll follow the austin group discussion around it, and if it is
> confirmed I'll try to post a patch.
Fabrice,
Thanks for follow up with the Austin Group!
Cheers,
Carlos.