va_end - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# va_end

From cppreference.com
< cpp‎ | utility‎ | variadic

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

(none)

### [edit] See also

va_start | enables access to variadic function arguments (function macro) [edit]
va_copy (C++11) | makes a copy of the variadic function arguments (function macro) [edit]
va_arg | accesses the next variadic function argument (function macro) [edit]
C documentation for va_end

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/variadic/va_end&oldid=71821"