Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!hao!oddjob!gargoyle!ihnp4!cbosgd!osu-cis!tut!lvc From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) Newsgroups: comp.lang.c Subject: Re: struct a <---> struct b Message-ID: <6574@tut.cis.ohio-state.edu> Date: 14 Feb 88 18:58:40 GMT References: <11774@brl-adm.ARPA> <6573@tut.cis.ohio-state.edu> Organization: The Ohio State University Dept of Computer and Information Science Lines: 26 In article <6573@tut.cis.ohio-state.edu> lvc@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@tut.cis.ohio-state.edu Path: ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc (yes its right)