Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!genrad!panda!teddy!jpn From: jpn@teddy.UUCP Newsgroups: comp.lang.c Subject: Re: zero length array Message-ID: <3808@teddy.UUCP> Date: Fri, 27-Feb-87 13:08:53 EST Article-I.D.: teddy.3808 Posted: Fri Feb 27 13:08:53 1987 Date-Received: Sun, 1-Mar-87 09:20:37 EST References: <4498@brl-adm.ARPA> <1987Feb25.201816.29714@gpu.utcs.toronto.edu> Reply-To: jpn@teddy.UUCP (John P. Nelson) Organization: GenRad, Inc., Concord, Mass. Lines: 16 Keywords: NULL cast portability >> Is the following a portable way of finding out where a field >>within a structure is located? >> >> & (((struct any_struct_tag *) 0)->any_field) > >Some compilers will refuse to cast NULL, specifically Lattice C up to 2.15(?) >As far as I know all Unix compilers will cast NULL. If true, then Lattice is seriously broken. Are you saying that I can't say time ((long *) 0) in Lattice C? Or execl(pgmname, arg0, arg1, (char *) 0)? If it can't do these things, then it isn't a C compiler!! . . . (I hate the 2.11 inews) . .