| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Make a copy of a variable argument list
#include <stdarg.h>
void va_copy( va_list d, 
              va_list s );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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().
See va_arg().
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | Yes | 
| Signal handler | Yes | 
| Thread | Yes | 
va_copy() is a macro.
va_arg(), va_end(), va_start()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |