English
Language : 

CC78K4 Datasheet, PDF (194/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
5-1 atoi,
atol
Utility Functions
FUNCTION
The string function atoi converts the contents of a decimal integer string to an int value.
The string function atol converts the contents of a decimal integer string to a long value.
HEADER
stdlib. h
FUNCTION PROTOTYPE
int atoi (const char *nptr);
long int atol (const char *nptr);
Function
atoi
atol
Arguments
nptr... String to be converted
Return Value
• int value if converted
properly
• INT_MAX (32767) if positive
overflow occurs
• INT_MIN (–32768) if
negative overflow occurs
• 0 if the string is invalid
• long int value if converted
properly
• LONG_MAX (2147483647)
for positive overflow
• LONG_MIN (–2147483648)
for negative overflow
• 0 if the string is invalid
194
User’s Manual U15556EJ1V0UM