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() .

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.

Last modified: 2013-12-23

comments powered by Disqus