efopen.c (about void voids)
John Woods
john at frog.UUCP
Fri Oct 25 02:59:46 AEST 1985
> I've had it. I'm going to write a book, called *HOW TO WRITE PORTABLE C
> PROGRAMS*.
>
> #define void int /* remove this line if your compiler knows about void */
>
Although I am sure that someone has a compiler for which the following will
not make sense, in general the construct
#ifndef lint
#define void int
#endif
allows one to have one's cake and eat it too.
--
John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101
...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc at MIT-XX.ARPA
Out of my way, I'm a scientist!
War of the Worlds
More information about the Comp.lang.c
mailing list