Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->ltoa()

Summary

#include <stdlib.h>

    
char *ltoa(long 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 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.