shell: fromdec/fromhex: parse sign
While we also have atoi, our custom fromdec/fromhex are more similar
to strtol, and thus useful to parse "number.number" or such stuff.
And since I need to pass negative hex numbers in later commits, here
it is.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment