zero length array

woods at gpu.utcs.toronto.edu woods at gpu.utcs.toronto.edu
Sun Mar 1 06:01:44 AEST 1987


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.



More information about the Comp.lang.c mailing list