Download 78K0 Coding - Renesas Electronics

Transcript
CubeSuite+ V1.01.00
CHAPTER 6 FUNCTION SPECIFICATIONS
ltoa (normal model only)
Converts long to a string
[Syntax]
#include <stdlib.h>
char *ltoa (long value, char *string, int radix) ;
[Argument(s)/Return value]
Argument
value :
String to which integer is to be converted
string :
Pointer to the conversion result
Return Value
If converted properly :
Pointer to the converted string
If not converted properly :
Null pointer
radix :
Base of output string
[Description]
- The itoa, ltoa, and ultoa functions all convert the integer value specified by value to its string equivalent which is
terminated with a null character and store the result in the area pointed to by "string".
- The base of the output string is determined by radix, which must be in the range 2 through 36. Each function performs conversion based on the specified radix and returns a pointer to the converted string. If the specified radix is
outside the range 2 through 36, the function performs no conversion and returns a null pointer.
R20UT0782EJ0100 Rev.1.00
Oct 01, 2011
Page 669 of 836