stdarg

Dave Eisen dkeisen at Gang-of-Four.Stanford.EDU
Thu Feb 7 04:11:44 AEST 1991


In article <588 at taumet.com> steve at taumet.com (Stephen Clamage) writes:
>pelliott at hounix.uucp (Paul Elliott) writes:
>|In ansi C, is there a way to have a function with a variable argument list
>|and zero fixed parameters? If so what would one use for the second parameter
>|to va_start, which is normally supposed to be the last fixed parameter?
>
>Not in ANSI C.  The <stdarg.h> method requires at least one fixed argument.

Probably a reasonable decision. But it does make it a pain to deal
with the third party software we use that is full of <varargs.h> functions
that can take 0 or more arguments.



--
Dave Eisen                      "If I wanted to be a diplomat, I would
1447 N. Shoreline Blvd.            have joined the foreign service."
Mountain View, CA 94043                   --- my girlfriend to her boss
(415) 967-5644                   dkeisen at Gang-of-Four.Stanford.EDU (for now)



More information about the Comp.lang.c mailing list