itoa
The FSF.itoa function converts a 32-bit integer value into a string.
char * WINAPI itoa( int Value, char *Str, int Radix);
Parameters
Value
Integer value to convert.
Str
Pointer to a buffer that will receive the resulting string.
The size of the Str string must be large enougth to hold the converted
string (max value = 32 symbols + '\0').
Radix
Base of Value. Must be in then range of 2 - 36.
Return value
The return value is a pointer to the resulting string (Str).
Remarks
If Radix equals 10 and Value is negative,
the first character of the result string will be the minus sign '
-
'.
Example
You can define and initialize a function pointer to use it later:
FARSTDITOA FarItoa; ... FarItoa=Info.FSF->itoa; ... FarItoa(Value,Str,10);...or call the function directly:
Info.FSF->itoa(Value,Str,10);
See also: