Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

va_end - end variable argument list

&pagelevel(4)&pagelevel

Syntax

#include <stdarg.h>

Optional
#include <varargs.h> (End)

void va_end(va_list ap);

Description

The va_end, va_start and va_arg macros allow portable procedures that accept variable
argument lists, as defined in stdarg.h, to be written. They are used to process a list of
arguments which may vary in number and type at each function call.

va_end performs cleanup activities on the variable argument list ap. This macro must be
called before returning from a function whose argument list has been processed with
va_start and va_arg.

ap is the argument list that was processed. If it is to be used again, the argument list must
be re-initialized with va_start, as va_end changes the argument list ap.

See also

va_arg(), va_start(), stdarg.h, varargs.h.