SuperFamiconv
SuperFamiconv copied to clipboard
`-T` (at least) supports only base 10 & silently rejects malformed numbers
trafficstars
superfamiconv map -T 0x80 apparently treats the argument as 0, silently discarding the x80 part. I didn't check with other options.
C stdlib has strtoul which handles this correctly with a base of 0, and error checking is possible by checking the returned pointer. (Example.) I don't know if there's a C++ way of doing that, though.
strtoul works fine in C++ too. It also offers std::stoi but that throws an exception on failure.