StringToIntEx Function

Converts a string to an integer with some more options.

int StringToIntEx(const char[] str, int &result, int nBase)

Parameters

const char[] str

String to convert.

int& result

Variable to store the result in.

int nBase

Numerical base to use. 10 is default.

Return Value

Number of characters consumed.