Generalize and fix strtol() and friends
commit31a566bc2fcd89f3a4bb7a0ed41cb3798eacac42
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Mon, 25 Feb 2019 16:35:41 +0000 (25 17:35 +0100)
committerJiří Zárevúcky <zarevucky.jiri@gmail.com>
Mon, 27 May 2019 16:17:24 +0000 (27 18:17 +0200)
tree0d07cd655aed6da7e63a3390e2d85b923beb1149
parentaf5037d7d69a9a68ea2c7d4cda870c058f02d4d9
Generalize and fix strtol() and friends

Added the option to recognize prefixes used by str_uint() (unused atm).
Allow the error variable be something else than errno.
Fix behavior of strtoul()/strtoull() on unsigned input. The standard
doesn't consider negative input "out of range", the expected behavior
is to just negate the unsigned input value (wraparound).
uspace/lib/c/generic/strtol.c