Namespaces
Variants
Views
Actions

va_end

From cppreference.com
< cpp‎ | utility‎ | variadic
Revision as of 11:44, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cstdarg>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
void va_end( va_list ap );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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.

Parameters

ap - an instance of the va_list type to clean up

Expanded value

(none)

See also

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