# va_end Macro

Ensure a function with a variable argument list can return successfully.

Include

<stdarg.h>

Prototype

void va_end(va_list ap)

Argument

 ap the va_list object from which arguments are being obtained

Remarks

The va_end macro ensures that the function whose argument list is being read is in a state whereby it can successfully return after all the required arguments have been read from the list. Further calls to va_arg should not be made unless ap is reinitialized by a call to va_start.

Example

See example at va_arg.