Seven Original Sins of K&R (Long)

Henry Spencer henry at zoo.toronto.edu
Fri Sep 28 02:52:37 AEST 1990


In article <1990Sep26.193626.721 at phri.nyu.edu> roy at 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 at zoo.toronto.edu   utzoo!henry



More information about the Comp.lang.c mailing list