casts to (void)

Michael Meissner meissner at rtp47.UUCP
Mon Jul 29 23:13:19 AEST 1985


Whenever I use things like printf with lint, I define things like:

	#define	Printf	(void) printf
	#define	Fputs	(void) fputs

		/* ... */

	Printf("Hello World!\n");

Which translates to:

	(void) printf("Hello World!\n");

Thus lint is kept happy, and my program is not cluttered up with casts to void.

	Michael Meissner
	Data General
	...{ inhp4, decvax }!mcnc!rti-sel!rtp47!meissner



More information about the Comp.lang.c mailing list