The "0" or "0x" characters with base 0 were not accounted for in the returned endptr value.
Signed-off-by: Anhad Singh <andypython@protonmail.com>