va_copy()

Make a copy of a variable argument list

Synopsis:

#include <stdarg.h>

void va_copy( va_list d, 
              va_list s );

Arguments:

d
A va_list object into which you want to copy the list.
s
The va_list object that you initialized with the va_start() macro and that you want to copy.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The va_copy() macro creates a copy of a list of variable arguments.

You can use the va_copy() macro with the associated macros va_arg(), va_start(), and va_end(), especially to avoid problems on some platforms. For more information, see "Varargs and coercion" in the documentation for va_arg().

Examples:

See va_arg().

Classification:

POSIX 1003.1

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Caveats:

va_copy() is a macro.

See also:

va_arg(), va_end(), va_start()