summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/atof.c
diff options
context:
space:
mode:
authormillert <>2017-07-06 16:23:11 +0000
committermillert <>2017-07-06 16:23:11 +0000
commitdae2542cf4dc008b3b61b507d9ee18993ba9def4 (patch)
tree26f60c0a26bc547b49545722cdc2d4a6192d7562 /src/lib/libc/stdlib/atof.c
parent4633cfbfe1188ff5cdb819c2aa46163c0d1cfe3e (diff)
downloadopenbsd-dae2542cf4dc008b3b61b507d9ee18993ba9def4.tar.gz
openbsd-dae2542cf4dc008b3b61b507d9ee18993ba9def4.tar.bz2
openbsd-dae2542cf4dc008b3b61b507d9ee18993ba9def4.zip
The 0x (or 0X) prefix in base 16 is optional so only skip over the
prefix if the character following it is a valid hex char. The C99 standard is clear that given the string "0xy" zero should be returned and endptr set to point to the "x". OK deraadt@ espie@
Diffstat (limited to 'src/lib/libc/stdlib/atof.c')
0 files changed, 0 insertions, 0 deletions