commit | 3da450e20361076952483456c6f196ea7579ce7a | [log] [tgz] |
---|---|---|
author | Quentin Rameau <quinq@fifth.space> | Mon Feb 29 17:34:34 2016 +0100 |
committer | sin <sin@2f30.org> | Tue Mar 01 11:14:42 2016 +0000 |
tree | 519720c1403b91062fe3d5850ad91a0176570b31 | |
parent | 243cdb6669544a55d84a7d223ec2517d1e2cb43a [diff] |
printf: replace strtonum with strtol functions in conversions Use strtol and strtoul respectively for d, i and o, u, x, X conversions. This way we can convert other bases than 10, which strtonum doesn't provide. Also don't exit on conversion error but display a warning, set a return error code, and continue.