itoa()

This function converts an int value to a null-terminated character array.

  #include <extras/extras_stdlib.h>
  
  char * itoa(int val, char *str, int radix);    
Parameter

val

An integer value to convert.

str

A pointer to the string to store the converted value.

radix

The numeric base of the number to be converted.

Remarks

The radix is the base of the number in a range of 2 to 36. The function returns a pointer to the converted string.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.