Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Seven Original Sins of K&R (Long) Message-ID: <1990Sep27.165237.1481@zoo.toronto.edu> Organization: U of Toronto Zoology References: <12780@sdcc6.ucsd.edu> <1990Sep26.163927.26084@dg-rtp.dg.com> <1990Sep26.193626.721@phri.nyu.edu> Date: Thu, 27 Sep 90 16:52:37 GMT In article <1990Sep26.193626.721@phri.nyu.edu> roy@phri.nyu.edu (Roy Smith) writes: >What about this for a portable way to define NULL: > >#define NULL (""[1]) > >would that work? Uh, to do what? NULL is a null *pointer*, not a '\0' character. (That should be [0], and in any case this will not work in initializers because it is not a compile-time expression under the official rules.) -- TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology OSI: handling yesterday's loads someday| henry@zoo.toronto.edu utzoo!henry