Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcsri!utgpu!woods From: woods@gpu.utcs.toronto.edu Newsgroups: comp.lang.c Subject: Re: zero length array Message-ID: <1987Feb28.150144.2853@gpu.utcs.toronto.edu> Date: Sat, 28-Feb-87 15:01:44 EST Article-I.D.: gpu.1987Feb28.150144.2853 Posted: Sat Feb 28 15:01:44 1987 Date-Received: Sat, 28-Feb-87 17:39:25 EST References: <4498@brl-adm.ARPA> <1987Feb25.201816.29714@gpu.utcs.toronto.edu> <3808@teddy.UUCP> Reply-To: woods@gpu.utcs.UUCP (Greg Woods) Organization: University of Toronto Computing Services Lines: 12 Keywords: NULL cast portability Checksum: 57784 Summary: casting NULL in Lattice. I guess we are getting a little off topic here, but anyway... I haven't used Lattice in a long time (and I'd rather not), but as far as I can remember, the casting of zero (0) works, except when used to reference a structure member, especially in a sizeof() expression: sizeof(((struct xyzzy *) 0)->member) My original article may not have made this clear. Greg Woods.