mirror of https://github.com/mkerrisk/man-pages
stdarg.3: Describe va_copy()
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575077 Reported-by: Friedrich Delgado Friedrichs <friedel@nomaden.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
764d3de3bc
commit
030454526d
|
@ -153,6 +153,23 @@ are possible.
|
|||
.BR va_end ()
|
||||
may be a macro or a function.
|
||||
.SS va_copy()
|
||||
The
|
||||
.BR va_copy ()
|
||||
macro copies the (previously initialized) variable argument list
|
||||
.I src
|
||||
to
|
||||
.IR dest .
|
||||
The behavior is as if
|
||||
.BR va_start ()
|
||||
were applied to
|
||||
.IR dest
|
||||
with the same
|
||||
.I last
|
||||
argument, followed by the same number of
|
||||
.BR va_arg ()
|
||||
invocations that was used to reach the current state of
|
||||
.IR src .
|
||||
|
||||
.\" Proposal from clive@demon.net, 1997-02-28
|
||||
An obvious implementation would have a
|
||||
.I va_list
|
||||
|
|
Loading…
Reference in New Issue