And upon further discussion, both use `errno` for overflow. And `strtol` requires extra handling when `long != int`. It seems the best would be to write a custom version with the exact semantics we want (though outside the scope of this review for sure).