summary of C-standards workshop at Usenix

gwyn at brl-tgr.UUCP gwyn at brl-tgr.UUCP
Sat Jul 7 05:35:41 AEST 1984


The difference is that
	extern int foo();
has unknown (unspecified) arguments and anything will be permitted,
whereas
	extern int foo(void,);		/* suggested */
has unknown (unspecified) arguments and anything will be permitted.
There is no difference in the meaning of the DECLARATIONS, so the
question comes down to how to properly DEFINE a "varargs" function.
I do not see how
	int foo(void,)
		{
		/* get actual parameters somehow */
		}
is going to be made to work.  Seems like some form of varargs needs
to be defined; does anyone know of a way to do this that will work
on all architectures and C runtime implementations?



More information about the Comp.lang.c mailing list