...
Use strtol() or a related function to convert parse an integer out of a string token to an integer. Likewise, use strtof() or a related function to convert parse a string token to a floating-point number from a string. These functions provide more robust error handling than alternative solutions.
...