strtoul(-1) discussion

Florian Weimer
Mon Apr 15 07:45:00 GMT 2013

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

More information about the Libc-help mailing list