stdarg.h mostly broken

David B.Anderson davea at quasar.wpd.sgi.com
Tue Mar 26 11:55:19 AEST 1991


In article <CHRISA.91Mar25133953 at beldar.ma30.bull.com> chrisa at beldar.ma30.bull.com (Chris Anderson) writes:
>
>The following program prints "0" when compiled on a 4D20:
>
>	#include <stdarg.h>
>	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 at sgi.com ]
(The Varargs Police :-)



More information about the Comp.sys.sgi mailing list