<varargs.h> vs. function prototypes

Doug Gwyn gwyn at smoke.brl.mil
Thu Jun 20 00:19:51 AEST 1991


In article <14423 at dog.ee.lbl.gov> torek at elf.ee.lbl.gov (Chris Torek) writes:
>In other words, we are not willing to bend over backwards (for compatibility)
>until it hurts, only until it is mildly uncomfortable. :-)


But surely it's not appreciably harder, for the few uses of varargs
functions, to type the always correct
	void foo(va_alist)
		va_dcl
		{
		char *format;
		...
		format = va_arg(ap, char *);
		...
		}
instead of the sometimes incorrect
	void foo(format, va_alist)
		char *format;
		va_dcl
		{
		...
		...
		}



More information about the Comp.std.c mailing list