I was wondering if function strtol() works. I was expecting the value of "int i" to be 115 after the call of strtol, since that is the decimal ASCII value of char 's', but instead it outputs 0:
C++ code - 30 lines - codepad
Why is that?
EDIT: Hmm...maybe function atoi() is what I should be using instead.
EDIT again: No, same problem with that too...
http://codepad.org/j3LnkJ48