Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->ltoa()


#include <stdlib.h>

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


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


This function converts a long integer 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.