Replace uses of strto(u)l
The strtol and strtoul functions allow leading whitespace, and leading + signs, neither of which make sense in the places they are used. This change also makes the error handling simpler.
The strtol and strtoul functions allow leading whitespace, and leading + signs, neither of which make sense in the places they are used. This change also makes the error handling simpler.