Abandon NULL for (0)
Jean-Pierre Radley
jpr at dasys1.UUCP
Wed Oct 4 07:19:53 AEST 1989
In article <8241 at goofy.megatest.UUCP> djones at megatest.UUCP (Dave Jones) writes:
>This topic comes up in this group every now and then. After all the arguing
>is over -- and it can take months -- the survivers come to the conclusion
>that NULL is a mistake, but it's too late to correct it. Just say,
>(FILE*)0, or (char*)0, or whatever.
I have found my code to more readable if I use these two defines:
#define NULLC (char *)0
#define NULLF (FILE *)0
--
Jean-Pierre Radley jpr at jpradley.uucp
New York, NY 72160.1341 at compuserve.com
More information about the Comp.lang.c
mailing list