Addresses of parameters (was Re: Portability of passing/operating ...)

Guy Harris guy at auspex.UUCP
Fri Oct 28 05:51:48 AEST 1988


>How do you suppose varargs functions are implemented?  They must take
>the address of the first parameter to "step through" the parameter list.

Umm, how "varargs" functions are implemented is a function of how
they're implemented; they are *generally* implemented in the fashion you
describe, but there is no *requirement* that they be so implemented. 
<varargs.h> (or <stdarg.h> as in the draft ANSI C standard) can be
implemented however the vendor chooses, as long as they Do The Right
Thing.



More information about the Comp.lang.c mailing list