Quote:
Originally Posted by Konstantinos
strval will return 0 if the text doesn't contain only numbers. Checking if the index 0 and 1 are equal to '0' and '\0' respectively is not something people would do and sscanf is really much easier to use.
|
Oh, never knew this. Something new I got to know today, might as well change mine also.