gcc and NULL function pointers.
Blair P. Houghton
bhoughto at pima.intel.com
Mon Jun 10 08:06:33 AEST 1991
Old chesnuts crack hard...
In article <1991Jun4.012914.25418 at tkou02.enet.dec.com> diamond at jit533.enet@tkou02.enet.dec.com (Norman Diamond) writes:
>>On our system, NULL is #defined in a header file to be ((void *)0),
>So, be careful casting your uses of the NULL macro!!
Better, su to root and erase the `(void *)' part. The most
general, and therefore most valuable, way to define NULL is
to simply map it to the digit 0. Anything else only complicates
the situation unnecessarily (although it might illuminate the
occasional compiler bug.)
--Blair
"Blink-blink."
More information about the Comp.std.c
mailing list