va_copy()
QNX SDP8.0C Library ReferenceAPIDeveloper
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:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |
Caveats:
va_copy() is a macro.
Page updated: