itoa

Converts an integer to a string.

char * itoa (int v, char * buffer, int radix);

Required Header
<stdlib.h>

Return Value

This function returns the string representation of an integer.

Parameters

v

  The value to be converted to a string

buffer

  The string result

radix

  The base of the converted number

Remarks

The itoa function converts v to a string, where the conversion allows a radix of between 2 and 36 to form any desired number type.

Standard Library

See Also    atoi, ltoa, sprintf