Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!mcnc!rti!dg-rtp!dg-rtp.dg.com!goudreau From: goudreau@dg-rtp.dg.com (Bob Goudreau) Newsgroups: comp.lang.c Subject: Re: Seven Original Sins of K&R (Long) Message-ID: <1990Sep26.234406.3798@dg-rtp.dg.com> Date: 26 Sep 90 23:44:06 GMT References: <12780@sdcc6.ucsd.edu> <1990Sep26.163927.26084@dg-rtp.dg.com> <1990Sep26.193626.721@phri.nyu.edu> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Reply-To: goudreau@dg-rtp.dg.com (Bob Goudreau) Organization: Data General Corporation, Research Triangle Park, NC Lines: 22 In article <1990Sep26.193626.721@phri.nyu.edu>, roy@phri.nyu.edu (Roy Smith) writes: > goudreau@dg-rtp.dg.com (Bob Goudreau) writes: > >> The Second Original Sin was the failure to make "NULL" a keyword. Please keep your attributions straight; I did not write that sentence. > What about this for a portable way to define NULL: > > #define NULL (""[1]) > > would that work? Nope; it's not even *defined* behavior to access beyond the end of an array, which is what you've done. ---------------------------------------------------------------------- Bob Goudreau +1 919 248 6231 Data General Corporation 62 Alexander Drive goudreau@dg-rtp.dg.com Research Triangle Park, NC 27709 ...!mcnc!rti!xyzzy!goudreau USA