[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: va_copy for function doco
From: |
Kevin Ryde |
Subject: |
Re: va_copy for function doco |
Date: |
28 Dec 2001 09:46:01 +1000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5 |
Russ Allbery <address@hidden> writes:
>
> Kevin Ryde <address@hidden> writes:
>
> > +Hopefully one of the two will be available on any system
> > +where more than plain @code{=} is required to copy a @code{va_list}.
>
> I'm pretty sure that last sentence is overly optimistic, although I don't
> at present have a counter-example.
I think I've seen "memcpy (&(dst), &(src), sizeof(va_list))" before,
though I forget where. Perhaps that would be a better recommendation.
I guess gcc would optimize it down to the same as "(dst)=(src)".