Seven Original Sins of K&R (Long)
Bob Goudreau
goudreau at dg-rtp.dg.com
Thu Sep 27 09:44:06 AEST 1990
In article <1990Sep26.193626.721 at phri.nyu.edu>, roy at phri.nyu.edu (Roy
Smith) writes:
> goudreau at 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 at dg-rtp.dg.com
Research Triangle Park, NC 27709 ...!mcnc!rti!xyzzy!goudreau
USA
More information about the Comp.lang.c
mailing list