This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: strtoul(-1) discussion


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.


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