varargs

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

Synopsis

varargs ::=

  • empty

Attributes

Common attributes and common linking attributes.

No additional attributes.

Description

A 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 (…).

Attributes

Common attributes and common linking attributes.

any attribute

Any attribute in any other explicit namespace

Parents

These elements contain varargs: funcprototype, macroprototype.

See Also

Related elements: funcdef, funcparams, funcprototype, funcsynopsisinfo, function, paramdef, parameter, returnvalue, void.

Examples

 1 |<article xmlns='http://docbook.org/ns/docbook'>
   |<title>Example varargs</title>
   | 
   |<funcsynopsis>
 5 |<funcsynopsisinfo>
   |#include &lt;varargs.h&gt;
   |</funcsynopsisinfo>
   |<funcprototype>
   |  <funcdef>int <function>max</function></funcdef>
10 |  <varargs/>
   |</funcprototype>
   |</funcsynopsis>
   | 
   |</article>

#include <varargs.h>
int max(...);