Fix strtoul 'endptr' return value: It should point to the first invalid character,
not to the last valid character.
Fix strtol 'endptr' return value.
Merge pull request #39 from groessler/something_to_pull

Fix strtoul 'endptr' return value: It should point to the first invalid character,