struct a <---> struct b

Lawrence V. Cipriani lvc at tut.cis.ohio-state.edu
Mon Feb 15 04:58:40 AEST 1988


In article <6573 at tut.cis.ohio-state.edu> lvc at tut.cis.ohio-state.edu

>	struct c
>	{
>		struct b *pb;
>		struct c *pc;
>		...	/* other stuff */
>	};

Oops!  The line mangler strikes again.  Should be:

	struct c
	{
		struct a *pa;
		struct b *pb;
		...	/* other stuff */
	};

I should have mentioned that this technique is mentioned in K&R and isn't
a local hack to the C compiler.

-- 
oo
Larry Cipriani, AT&T Networks Systems (by day) Ohio State University (by night)
Domain: lvc at tut.cis.ohio-state.edu
Path: ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc (yes its right)



More information about the Comp.lang.c mailing list