English
Language : 

CC78K0S Datasheet, PDF (192/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
3-1 va_start (normal model only)
va_arg (normal model only)
va_end (normal model only)
Special Functions
FUNCTION
The va_start 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);
type va_arg(va_list ap,type);
void va_end(va_list ap);
Function
va_start
va_arg
va_end
Arguments
Return Value
ap ... Variable to be
initialized so as to be used in
va_arg and va_end
parmN ... The argument
before variable argument
None
ap ... Variable to process
an argument list
type... Type to point the
relevant place of variable
argument (type is a type of
variable length; for example,
int type if described as va_arg
(va_list ap, int) or long type if
described as va_arg (va_list
ap, long))
Normal case ... Value in the
relevant place of variable
argument
If ap is a null pointer ... 0
ap .... Variable to process the
variable number of arguments
None
192
User’s Manual U14872EJ1V0UM