Do you use stdarg, varargs or ya-args?

Rahul Dhesi dhesi%cirrusl at oliveb.ATC.olivetti.com
Sat May 11 02:10:05 AEST 1991


In <2755 at muffin.cme.nist.gov> libes at cme.nist.gov (Don Libes) writes:

>All the STDC (-like) compilers I use support varargs.  (To be
>explicit, this includes Borland, DEC, GNU, and Microsoft compilers.)
>All the non-STDC compilers I use (too many to name) support varargs.

Some months ago I had the dubious honor of porting 110,000 lines of
UNIX C code to run under the pretty-much-ANSI-conformant High-C
compiler from Metaware.  In this environment, varargs.h is a hard link
to stdarg.h.

So varargs.h is supported, but that doesn't mean that "varargs" is
supported -- your variadic functions had better use the "..." syntax
and the ANSI macros, though you can #include either varargs.h or
stdarg.h, whichever you prefer...
--
Rahul Dhesi <dhesi at cirrus.COM>
UUCP:  oliveb!cirrusl!dhesi



More information about the Comp.lang.c mailing list