Article View: comp.std.c
Article #3117Re: gcc and NULL function pointers.
From: Sean Eric Fagan
Date: Mon, 10 Jun 1991 06:12
Date: Mon, 10 Jun 1991 06:12
26 lines
1207 bytes
1207 bytes
In article <4641@inews.intel.com> bhoughto@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@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.
Technical Details
Message-ID:
<1991Jun10.061202.25199@kithrup.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!kithrup!sefReferences:
<16386@ganymede.inmos.co.uk> <1991Jun4.012914.25418@tkou02.enet.dec.com> <4641@inews.intel.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.std.c Subject: Re: gcc and NULL function pointers. Message-ID: <1991Jun10.061202.25199@kithrup.COM> Date: 10 Jun 91 06:12:02 GMT Article-I.D.: kithrup.1991Jun10.061202.25199 References: <16386@ganymede.inmos.co.uk> <1991Jun4.012914.25418@tkou02.enet.dec.com> <4641@inews.intel.com> Organization: Kithrup Enterprises, Ltd. Lines: 26