diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/c/variadic%2Fva_list.html | |
new repository
Diffstat (limited to 'devdocs/c/variadic%2Fva_list.html')
| -rw-r--r-- | devdocs/c/variadic%2Fva_list.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devdocs/c/variadic%2Fva_list.html b/devdocs/c/variadic%2Fva_list.html new file mode 100644 index 00000000..507162c4 --- /dev/null +++ b/devdocs/c/variadic%2Fva_list.html @@ -0,0 +1,23 @@ + <h1 id="firstHeading" class="firstHeading">va_list</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code><stdarg.h></code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">/* unspecified */ va_list;</pre> +</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> </table> <p><code>va_list</code> is a complete object type suitable for holding the information needed by the macros <code>va_start</code>, <code>va_copy</code>, <code>va_arg</code>, and <code>va_end</code>.</p> +<p>If a <code>va_list</code> instance is created, passed to another function, and used via <code>va_arg</code> in that function, then any subsequent use in the calling function should be preceded by a call to <code>va_end</code>.</p> +<p>It is legal to pass a pointer to a <code>va_list</code> object to another function and then use that object after the function returns.</p> +<h3 id="References"> References</h3> <ul> +<li> C11 standard (ISO/IEC 9899:2011): </li> +<ul><li> 7.16/3 Variable arguments <stdarg.h> (p: 269) </li></ul> +<li> C99 standard (ISO/IEC 9899:1999): </li> +<ul><li> 7.15/3 Variable arguments <stdarg.h> (p: 249) </li></ul> +<li> C89/C90 standard (ISO/IEC 9899:1990): </li> +<ul><li> 4.8 VARIABLE ARGUMENTS <stdarg.h> </li></ul> +</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="va_arg" title="c/variadic/va arg"> <span class="t-lines"><span>va_arg</span></span></a></div> </td> <td> accesses the next variadic function argument <br> <span class="t-mark">(function macro)</span> </td> +</tr> <tr class="t-dsc"> <td> <div><a href="va_copy" title="c/variadic/va copy"> <span class="t-lines"><span>va_copy</span></span></a></div> +<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> makes a copy of the variadic function arguments <br> <span class="t-mark">(function macro)</span> </td> +</tr> <tr class="t-dsc"> <td> <div><a href="va_end" title="c/variadic/va end"> <span class="t-lines"><span>va_end</span></span></a></div> </td> <td> ends traversal of the variadic function arguments <br> <span class="t-mark">(function macro)</span> </td> +</tr> <tr class="t-dsc"> <td> <div><a href="va_start" title="c/variadic/va start"> <span class="t-lines"><span>va_start</span></span></a></div> </td> <td> enables access to variadic function arguments <br> <span class="t-mark">(function macro)</span> </td> +</tr> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/utility/variadic/va_list" title="cpp/utility/variadic/va list">C++ documentation</a></span> for <code>va_list</code> </td> +</tr> </table> <div class="_attribution"> + <p class="_attribution-p"> + © cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br> + <a href="https://en.cppreference.com/w/c/variadic/va_list" class="_attribution-link">https://en.cppreference.com/w/c/variadic/va_list</a> + </p> +</div> |
