< cpp‎ | utility‎ | variadic
Revision as of 23:40, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <cstdarg>
void va_end( va_list ap );

The va_end macro performs cleanup for an ap object initialized by a call to va_start or va_copy. va_end may modify ap so that it is no longer usable.

If there is no corresponding call to va_start or va_copy, or if va_end is not called before a function that calls va_start or va_copy returns, the behavior is undefined.

[edit] Parameters

ap - an instance of the va_list type to clean up

[edit] Expanded value


[edit] See also

enables access to variadic function arguments
(function macro) [edit]
makes a copy of the variadic function arguments
(function macro) [edit]
accesses the next variadic function argument
(function macro) [edit]