Convert a string to double (atof and _wtof), integer (atoi, _atoi64, _wtoi and _wtoi64), or long integer (atol and _wtol).
double atof(
const char *string
);
double _wtof(
const wchar_t *string
);
int atoi(
const char *string
);
__int64 _atoi64(
const char *string
);
int _wtoi(
const wchar_t *string
);
__int64 _wtoi64(
const wchar_t *string
);
long atol(
const char *string
);
long _wtol(
const wchar_t *string
);
Parameters
string
String to be converted.
Return Value
Each function returns the double, int, __int64, or long value produced by interpreting the input characters as a number. The return value is 0 (for atoi, _atoi64, _wtoi, and _wtoi64), 0L (for atol and _wtol), or 0.0 (for atof and _wtof) if the input cannot be converted to a value of that type. The return value is undefined in case of overflow.