Passing Arguments In C

Doug Gwyn gwyn at smoke.ARPA
Mon Sep 19 12:34:12 AEST 1988


In article <12241 at oberon.USC.EDU> blarson at skat.usc.edu (Bob Larson) writes:
>There are two semi-portable ways of doing it, known as varargs and stdargs.
>(varargs comes from bsd, stdargs from ansi.)

Come on, <varargs.h> was written at Bell Labs and has been provided on
all releases of UNIX in recent history.  <stdarg.h> resembles it to
some degree but relies on a couple of extra hooks to ensure that it can
be reasonably implemented on all architectures.  In particular it needs
the (, ...) notification to the compiler of the special nature of a
variadic-argument function.



More information about the Comp.lang.c mailing list