parsing - How to parse a string to an int in C++? - Stack Overflow
@fuzzyTew I wrote this answer before std::stol was even added to the C++ language. That said, I don't think it's fair to say that this is "C coding within C++". It's silly to say that std::strtol is C coding when it is explicitly part of the C++ language....