varargs

varargs — An empty element in a function synopsis indicating a variable number of arguments

Synopsis

Content Model

varargs ::=

  • empty

Description

VarArgs indicates that a function takes a variable number of arguments.

Processing expectations

The VarArgs element produces generated text that indicates that the function takes a variable number of arguments. The exact generated text may vary. One common result is “(…)”.

Parents

These elements contain varargs: funcprototype.

See Also

funcdef, funcparams, funcprototype, funcsynopsisinfo, function, paramdef, parameter, returnvalue, void

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example varargs</title>

<funcsynopsis>
<funcsynopsisinfo>
#include &lt;varargs.h&gt;
</funcsynopsisinfo>
<funcprototype>
  <funcdef>int <function>max</function></funcdef>
  <varargs/>
</funcprototype>
</funcsynopsis>

</article>
#include <varargs.h>

int max(...);

ChangeLog

This alpha reference page is $Revision: 1.4 $ published $Date: 2005/10/31 12:31:58 $.