gcc and NULL function pointers.
Sean Eric Fagan
sef at kithrup.COM
Mon Jun 10 16:12:02 AEST 1991
In article <4641 at inews.intel.com> bhoughto at pima.intel.com (Blair P. Houghton) writes:
>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.
This does not handle the case where a prototype is not in scope. E.g.
void
foo() {
bar(NULL);
}
void
bar(char *b) {
if (NULL == b) {
...
} else {
...
}
}
--
Sean Eric Fagan | "I made the universe, but please don't blame me for it;
sef at kithrup.COM | I had a bellyache at the time."
-----------------+ -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.
More information about the Comp.std.c
mailing list