News for hackers. Stuff that matters.
Re:“People who implement new and improved interfaces always ... by missblit on Friday September 11, 2015 @11:58AM (#10204415)
I didn't look too closely, but I think it will fail when the string is "0x".
Re:“People who implement new and improved interfaces always ... by victorNicollet on Friday September 11, 2015 @12:28PM (#10204597)
It only switches to base 16 if there's a digit after the "x". For "0x", it would just parse 0.
Re:“People who implement new and improved interfaces always ... by missblit on Friday September 11, 2015 @12:43PM (#10204691)
Ah thanks, I missed the isxdigit(s[2])