English
Language : 

CC78K4 Datasheet, PDF (176/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
3-1 va_start,
va_starttop,
va_arg,
va_end
Special Functions
FUNCTION
The va_start function (macro) is used to start a variable argument list.
The va_starttop function (macro) is used to start a variable argument list.
The va_arg function (macro) obtains the value of an argument from a variable argument list.
The va_end function (macro) indicates that the end of a variable argument list is reached.
HEADER
stdarg. h
FUNCTION PROTOTYPE
void va_start (va_list ap, parmN);
void va_starttop(va_list ap,parmN);
type va_arg (va_list ap, type);
void va_end (va_list ap);
va-list is typedef defined with stdarg.h.
Function
va_start
va_starttop
va_arg
va_end
Arguments
va_list ..... Variable
argument list
ap ... Variable to be
initialized so that it can be
used in va_arg and va_end
parmN ... Name of last
parameter in function
prototype (one immediately
proceeding ellipsis “...”)
va_list ap ... Variable
argument list. ap must be set
up with call to va_start before
calling va_arg type... Type of
argument to be obtained
va_list ap .... Variable
argument list. ap must be set
up with call to va_start before
calling va_arg.
Return Value
None
Next value from argument list;
0 if ap is a null pointer
None
176
User’s Manual U15556EJ1V0UM