HP 3000 Manuals

va_end [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

va_end 

Terminates access to a variable argument list.

Syntax 

     #include <stdarg.h>
     void va_end (va_list ap);

Parameters 

ap            A pointer to a double, as defined by type va_list in
              <varargs.h>.  This variable must be initialized with the
              macro va_start.

Return Values 

None.

Description 

The va_end macro terminates access to the variable argument list by
making ap unusable.  It must be called at the end of accessing the
variable argument list.

The macros va_start, va_arg, and va_end determine the arguments of a
function that can be called with a variable number of arguments.  The
variable number of arguments are indicated by the ellipsis in the
function header.


NOTE The header <varargs.h> also contains this macros described in this section. However, <varargs.h> is not defined by the ANSI C standard.
Examples Refer to the example located in the va_start macro description. See Also va_arg, va_start, ANSI C 4.8.1.3


MPE/iX 5.0 Documentation