va_list - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# va_list

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

/* unspecified */ va_list; |  |

`va_list` is a complete object type suitable for holding the information needed by the macros va_start, va_copy, va_arg, and va_end.

If a `va_list` instance is created, passed to another function, and used via va_arg in that function, then any subsequent use in the calling function should be preceded by a call to va_end.

It is legal to pass a pointer to a `va_list` object to another function and then use that object after the function returns.

### [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]
va_end | ends traversal of the variadic function arguments (function macro) [edit]
C documentation for va_list

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