[EXTERNAL] Re: Newlib's strtol() is not standard-compliant
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
lavr@ncbi.nlm.nih.gov
Tue Sep 15 02:33:42 GMT 2026
> A fix has been pushed to main.
>
> -- Jeff J.
Thanks. I checked the fix but unfortunately it does not seem to be complete:
"nptr" is not tracking the leading whitespace and / or a sign
that might appear prior to "0x". So endptr is not going to
receive a correct value, in either or both of those cases.
Maybe to assign "nptr" with the value of "s" (before bumping it by 2)
instead of doing just the ++ increment?
Anton Lavrentiev
Contractor NIH/NLM/NCBI
More information about the Newlib
mailing list