HP C/iX Library Reference Manual (30026-90004)

44 Chapter4
HP C/iX Library Header Descriptions
Header File Contents
Variable Number of Arguments <stdarg.h>
The header <stdarg.h> contains a type definition and three macros. These can be used to
determine the arguments of a function that can be called with a variable number of
arguments. The variable number of arguments is indicated by an ellipsis in the function
declaration.
NOTE
The header <varargs.h> also contains the same type definitions and macros
described in this section. However, <varargs.h> is not defined by the ANSI C
standard.
The following identifiers are defined in <stdarg.h>:
Common Definitions <stddef.h>
The following identifiers are defined in <stddef.h>:
SIGINT macro A signal indicating that an interactive interrupt has been
received.
signal function Specifies how a signal is to be handled.
SIGSEGV macro A signal indicating that an invalid address to storage has been
requested.
SIGTERM macro A signal indicating that a termination request was sent to the
program.
Table 4-11. Variable Number of Arguments <stdarg.h>
Name Type Description
va_arg macro Returns the type and value of the next argument in the argument
list ap.
va_end macro Terminates access to the variable argument list by making ap
unusable.
va_list type
definition
A pointer to a double used to store information needed by the
<stdarg.h> macros.
va_start macro Initializes the ap pointer (of type va_list) to the argument list for
subsequent use by va_arg and va_end.
Table 4-12. Common Definitions <stddef.h>
Name Type Description
NULL macro The constant 0.
Table 4-10. Signal Handling <signal.h>
Name Type Description