This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: strtoul(-1) discussion
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: Fabrice Bauzac <libnoon at gmail dot com>, libc-help at sourceware dot org, Alexandre Oliva <aoliva at redhat dot com>
- Date: Mon, 15 Apr 2013 09:45:45 +0200
- Subject: Re: strtoul(-1) discussion
- References: <CAB6Q1a-m=W4cA3WCeuB1FzFWHbistLrN3wR1hfo4mfPB9j9qJw at mail dot gmail dot com> <51619DB2 dot 10406 at redhat dot com>
On 04/07/2013 06:24 PM, Carlos O'Donell wrote:
I would be more than happy to review a patch to enhance the manual
to discuss the porting issue and that glibc's strtoul doesn't conform
with the standards.
Is this really true? I was under the impression that for historic
reasons, the standards require that both strtoul and the %u conversion
specifier accept negative values.
What do other systems do?
--
Florian Weimer / Red Hat Product Security Team