3 ms·
I didn't look too closely, but I think it will fail when the string is "0x".
by missblit 11y ago
I didn't look too closely, but I think it will fail when the string is "0x".
- victorNicollet 11y agoIt only switches to base 16 if there's a digit after the "x". For "0x", it would just parse 0.
- missblit 11y agoAh thanks, I missed the isxdigit(s[2])