void avoidance
Richard O'Keefe
ok at edai.UUCP
Mon Oct 17 14:11:30 AEST 1983
As far as I know, the point of writing
#define Ignore (void)
Ignore sprintf(....);
is to stop lint squawking about a function returning a value which
is sometimes ignored.
By the way, I've run into a problem with 'void'. The
Berkeley compiler seems to get confused with compound types based
on void.
typedef void (*fnptr)();
doesn't always work properly, mainly in initialisations.
More information about the Comp.lang.c
mailing list