Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!davea@quasar.wpd.sgi.com From: davea@quasar.wpd.sgi.com (David B.Anderson) Newsgroups: comp.sys.sgi Subject: Re: stdarg.h mostly broken Message-ID: <93526@sgi.sgi.com> Date: 26 Mar 91 01:55:19 GMT References: Sender: guest@sgi.sgi.com Reply-To: davea@quasar.UUCP (David B.Anderson) Distribution: comp Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 17 In article chrisa@beldar.ma30.bull.com (Chris Anderson) writes: > >The following program prints "0" when compiled on a 4D20: > > #include > main() { foo(1); } > > foo(x) { [stuff deleted] Note that the function definition is inconsistent with stdarg.h. (Where is the ... in the above?) One must use either stdarg.h or varargs.h. But don't mix, please (in a single source file). [ David B. Anderson Silicon Graphics (415)335-1548 davea@sgi.com ] (The Varargs Police :-)