on the fringe of C syntax/semantics

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Oct 14 13:10:14 AEST 1989


In article <2792 at lyle.UUCP> peterson at lyle.UUCP (James L. Peterson/1000000) writes:
>How do we refer to the "rest of the argument list".

You have to pass the va_list you've va_start()ed (i.e. argp).
The called function now gets an argument fo a definite type (va_list),
not a variable list of arguments.  It must use the va_arg() macro to
pick off the remaining arguments.



More information about the Comp.lang.c mailing list