2.1.6.22 itoa


Description

Converts the integer value into a character string

Syntax

char* itoa( int value, char *buffer, int radix )

Parameters

value
[input]the integer to be converted to string
buffer
[output]the buffer that is to hold resulting string
radix
[input]the base of the number; must be in the range 2 - 36.

Return

the resulting string.

Examples

EX1

void itoa_ex(int num, int radix)
{
    string strResult;
    itoa(num, strResult.GetBuffer(COM_LENGTH), radix);
    strResult.ReleaseBuffer();
    out_str(strResult);
}

Remark

Header to Included

origin.h

See Also

atoi

Reference