stdarg: va_list pass by value?

Doug Gwyn gwyn at smoke.brl.mil
Sat Dec 1 11:25:25 AEST 1990


In article <136196 at pyramid.pyramid.com> markhall at pyrps5.pyramid.com (Mark Hall) writes:
>Since the standard explicitly calls out the indeterminacy
>of passing AP objects as arguments, shouldn't it also call out the 
>indeterminacy of assigning AP objects?

It doesn't have to; since va_list may be an array type, a strictly-
conforming program must not attempt to copy by in an assignment
expression.  This leaves open the question whether or not one could
memcpy() it, but my advice is to not try such elaborate hackery.



More information about the Comp.std.c mailing list