zero length array
jpn at teddy.UUCP
jpn at teddy.UUCP
Sat Feb 28 04:08:53 AEST 1987
>> 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)
.
.
More information about the Comp.lang.c
mailing list