Crossware

Table of Contents        Previous topic       Next topic       

C LIBRARY FUNCTIONS->Detailed Descriptions->itoa()

Summary

#include <stdlib.h>

    
char *itoa(int number, char* string, int radix);Convert int to string

Parameters

    
numberInteger to be converted
stringPointer to the characterarray to receive the string
radixBase of number


Description

This function converts an integer number to a null terminated character string and stores the result in string.  The length of the resulting string depends upon the value of the number and the radix.


Return Value

The function returns a pointer to string.