Table of Contents        Previous topic       Next topic       

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


#include <stdlib.h>

char *ultoa(unsigned long number, char* string, int radix);Convert unsigned long integer to string


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


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