typechecking

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jan 11 18:33:31 AEST 1989


In article <19620 at uflorida.cis.ufl.EDU> thoth at banana.cis.ufl.edu () writes:
>fprintf("%s : line %d : colon expected.\n",filename,linenumber); 
>Turbo catches this and gcc doesn't.

I'm somewhat surprised that GCC doesn't catch this, since the
correct prototype in <stdio.h> would be
	int fprintf(FILE *, const char *, ...);
and the compiler should be able to validate the first two argument types.



More information about the Comp.lang.c mailing list