va_copy

Copies and initializes a variable argument list.

  #include <stdarg.h>
  
  void va_copy(va_list dest, va_list src);    
Parameter

dest

The destination for the copied variable argument list.

src

The argument list to copy.

Remarks

The va_copy() macro makes a copy of the variable list src in a state as if the va_start macro had been applied to it followed by the same sequence of va_arg macros as had been applied to src to bring it into its present state.