Difference between revisions of "cpp/utility/variadic/va start"
From cppreference.com
(fmt) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 53: | Line 53: | ||
{{dcl list template | cpp/utility/variadic/dcl list va_end}} | {{dcl list template | cpp/utility/variadic/dcl list va_end}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/utility/variadic/va start]] | ||
+ | [[es:cpp/utility/variadic/va start]] | ||
+ | [[fr:cpp/utility/variadic/va start]] | ||
+ | [[it:cpp/utility/variadic/va start]] | ||
+ | [[ja:cpp/utility/variadic/va start]] | ||
+ | [[pt:cpp/utility/variadic/va start]] | ||
+ | [[ru:cpp/utility/variadic/va start]] | ||
+ | [[zh:cpp/utility/variadic/va start]] |
Revision as of 10:40, 2 November 2012
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cstdarg>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">void va_start( va_list ap, parm_n );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
The va_start
macro enables access to the variable arguments following the named argument parm_n
.
va_start
should be invoked with an instance to a valid va_list object ap
before any calls to va_arg.
Contents |
Parameters
ap | - | an instance of the va_list type |
parm_n | - | the named parameter preceding the first variable parameter |
Expanded value
(none)
Example
Run this code
Output:
150
See also
accesses the next variadic function argument (function macro) | |
ends traversal of the variadic function arguments (function macro) |