Mount Fuji Engine  0.8b
MF_API int MFString_AsciiToInteger ( const char *  pString,
bool  bDetectBase = true,
int  base = 10,
const char **  ppNextChar = NULL 
)

Parses a decimal, hexadecimal or binary integer from a given string.

Parameters
pStringString to parse.
bDetectBaseDetect the numeric base of the string via prefixes '0x' or '$' for hex, or 'b' for binary.
baseIf bDetectBase is false, specifies the numeric base to use. Accepted values are 10, 16 and 2.
ppNextCharOptional pointer that receives the following character in the string.
Returns
The integer parsed from the string.