Everything

va_copy


Makes a copy of the argument currently being referenced for a function with variable arguments.

[Format]

#include <stdarg.h>

void va_copy (va_list dest, va_list src);

[Parameters]

dest Copy of variable for referencing variable arguments

src Variable for referencing variable arguments

[Remarks]

A copy is made of the second argument src which is one of the variable arguments that have been initialized by the va_start macro and used by the va_arg macro, and the copy is saved in the first argument dest.

The src argument must be the same as the src initialized by va_start.

The dest argument can be used as an argument that indicates the variable arguments in the subsequent va_arg macros.