Path: utzoo!attcan!uunet!munnari.oz.au!brolga!bunyip.cc.uq.oz.au!janus.usq.edu.au!zeus!s64421 From: s64421@zeus.usq.edu.au (house ron) Newsgroups: comp.lang.c Subject: Re: Seven Original Sins of K&R (Long) Message-ID: <1990Sep28.112637.10446@zeus.usq.edu.au> Date: 28 Sep 90 11:26:37 GMT References: <12780@sdcc6.ucsd.edu> <1990Sep26.163927.26084@dg-rtp.dg.com> <1990Sep26.193626.721@phri.nyu.edu> <1990Sep26.234406.3798@dg-rtp.dg.com> Organization: Univ. College of Sth. Queensland Lines: 21 goudreau@dg-rtp.dg.com (Bob Goudreau) writes: >In article <1990Sep26.193626.721@phri.nyu.edu>, roy@phri.nyu.edu (Roy >Smith) writes: >> >> #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. I think he means #define NULL (""[0]) -- Regards, Ron House. (s64421@zeus.usq.edu.au) (By post: Info Tech, U.C.S.Q. Toowoomba. Australia. 4350)