[Previous]
[Contents]
[Next]

va_start()

start getting items from a variable argument list

Synopsis:

#include <stdarg.h>
void va_start( va_list param, previous );

Description:

The va_start() macro is used to start the acquisition of arguments from a list of variable arguments. The param argument is used by the va_arg() macro to locate the current acquired argument. The previous argument is the argument that immediately precedes the "..." notation in the original function definition. The va_start() macro must be used with the associated macros va_arg() and va_end(). See the description of va_arg() for complete documentation on these macros.

Examples:

See va_arg() and va_end().

Classification:

ANSI

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

Caveats:

va_start() is a macro.

See also:

va_arg(), va_end(), vfprintf(), vprintf(), vsprintf()


[Previous]
[Contents]
[Next]