Gareon
asked on
Conversion of CString digits to an int
Does anyone know how to convert digits stored in a CString to an int value?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
--> begin quote
long strtol( const char *nptr, char **endptr, int base );
The strtol function converts nptr to a long. strtol stops reading the string nptr at the first character it cannot recognize as part of a number. This may be the terminating null character, or it may be the first numeric character greater than or equal to base.
<-- end quote