Article View: comp.std.c
Article #3167Re: gcc and NULL function pointers.
From: Jef Poskanzer
Date: Fri, 21 Jun 1991 20:18
Date: Fri, 21 Jun 1991 20:18
14 lines
1098 bytes
1098 bytes
Hey, I've got an idea: how about not using NULL? Using a 0 explicitly
cast to the appropriate pointer type works perfectly for all machines
and compilers. Furthermore, it makes the code more self-documenting
and maintainable, and less error-prone.
Oh, wait. It means typing a few more characters. So much for that idea.
---
Jef
Jef Poskanzer jef@well.sf.ca.us {apple, ucbvax, hplabs}!well!jef
"You can put me in jail, but you cannot give me narrower quarters than
as a seaman I have always had. You cannot give me coarser food than I
have always eaten. You cannot make me lonlier than I have always
been." -- Andrew Furuseth, Emancipator of Seamen
Technical Details
Message-ID:
<25572@well.sf.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!well!jefReferences:
<9752@cognos.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!well!jef From: jef@well.sf.ca.us (Jef Poskanzer) Newsgroups: comp.std.c Subject: Re: gcc and NULL function pointers. Message-ID: <25572@well.sf.ca.us> Date: 21 Jun 91 20:18:12 GMT References: <9752@cognos.UUCP> Reply-To: Jef Poskanzer <jef@well.sf.ca.us> Organization: Acme Software Lines: 14