va_start Macro

Initializes a va_list object.

Include

<stdarg.h>

Prototype

void va_start(va_list ap, last_arg)

Arguments

ap
pointer to list of arguments
last_arg
last named parameter before the optional arguments

Remarks

Initializes the ap object so that it is usable with va_arg and va_end macros. The last name parameter should not be declared with the register storage class, be a function or array type, or be a type that is not compatible with the type that results after application of the default argument promotions.

Example

See example at va_arg.