(libc.info.gz) How Variadic
Info Catalog
(libc.info.gz) Why Variadic
(libc.info.gz) Variadic Functions
(libc.info.gz) Variadic Example
A.2.2 How Variadic Functions are Defined and Used
-------------------------------------------------
Defining and using a variadic function involves three steps:
* _Define_ the function as variadic, using an ellipsis (`...') in
the argument list, and using special macros to access the variable
arguments. Receiving Arguments.
* _Declare_ the function as variadic, using a prototype with an
ellipsis (`...'), in all the files which call it. Variadic
Prototypes.
* _Call_ the function by writing the fixed arguments followed by the
additional variable arguments. Calling Variadics.
Menu
* Variadic Prototypes How to make a prototype for a function
with variable arguments.
* Receiving Arguments Steps you must follow to access the
optional argument values.
* How Many Arguments How to decide whether there are more arguments.
* Calling Variadics Things you need to know about calling
variable arguments functions.
* Argument Macros Detailed specification of the macros
for accessing variable arguments.
* Old Varargs The pre-ISO way of defining variadic functions.
Info Catalog
(libc.info.gz) Why Variadic
(libc.info.gz) Variadic Functions
(libc.info.gz) Variadic Example
automatically generated by
info2html