1<html lang="en"> 2<head> 3<title>va_alist - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Varargs.html#Varargs" title="Varargs"> 9<link rel="next" href="va_005fstart_002dtrad.html#va_005fstart_002dtrad" title="va_start-trad"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<meta http-equiv="Content-Style-Type" content="text/css"> 12<style type="text/css"><!-- 13 pre.display { font-family:inherit } 14 pre.format { font-family:inherit } 15 pre.smalldisplay { font-family:inherit; font-size:smaller } 16 pre.smallformat { font-family:inherit; font-size:smaller } 17 pre.smallexample { font-size:smaller } 18 pre.smalllisp { font-size:smaller } 19 span.sc { font-variant:small-caps } 20 span.roman { font-family:serif; font-weight:normal; } 21 span.sansserif { font-family:sans-serif; font-weight:normal; } 22--></style> 23<link rel="stylesheet" type="text/css" href="../cs.css"> 24</head> 25<body> 26<div class="node"> 27<a name="va_alist"></a> 28<a name="va_005falist"></a> 29<p> 30Next: <a rel="next" accesskey="n" href="va_005fstart_002dtrad.html#va_005fstart_002dtrad">va_start-trad</a>, 31Up: <a rel="up" accesskey="u" href="Varargs.html#Varargs">Varargs</a> 32<hr> 33</div> 34 35<h4 class="subsection">13.2.1 Declare variable arguments</h4> 36 37<p><a name="index-va_005falist-500"></a><a name="index-va_005fdcl-501"></a><strong>Synopsis</strong> 38<pre class="example"> #include <varargs.h> 39 <var>function</var>(va_alist) 40 va_dcl 41</pre> 42 <p><strong>Description</strong><br> 43To use the <samp><span class="file">varargs.h</span></samp> version of variable argument lists, you must 44declare your function with a call to the macro <code>va_alist</code> as its 45argument list, and use <code>va_dcl</code> as the declaration. <em>Do not 46use a semicolon after </em><code>va_dcl</code><em>.</em> 47 48 <p><strong>Returns</strong><br> 49These macros cannot be used in a context where a return is syntactically 50possible. 51 52 <p><strong>Portability</strong><br> 53<var>va_alist</var> and <var>va_dcl</var> were the most widespread method of 54declaring variable argument lists prior to ANSI C. 55 56 </body></html> 57 58