Help, page 197 K&R !!!

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Jul 2 13:25:01 AEST 1989


In article <CLINE.89Jul1102015 at sun.soe.clarkson.edu> cline at sun.soe.clarkson.edu (Marshall Cline) writes:
>	{	char	*p;
>		p->squiggle = 3;  /* implicit cast of "p" to "(worm_t *)p" */

I don't think that was ever allowed; some older C compilers did permit
pointers to one structure type to be used to access members of another
structure type, but that's as weird as I recall it getting.



More information about the Comp.lang.c mailing list