Name

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

Synopsis

varargs ::= empty

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

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>

Get DocBook 5: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.