casts to (void)

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sun Aug 4 22:07:54 AEST 1985


The people proposing ways of making
	(void)printf( ... );
easier to enter into their code are missing the point of lint's
complaint!

The printf() function CAN FAIL and if you don't test for it,
Murphy says that it WILL fail, under the worst possible
circumstances (e.g., while updating YOUR pay record).
Instead of looking for ways to avoid testing printf return,
how about making your code more robust.



More information about the Comp.lang.c mailing list