Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 23 Jul 2011 19:05:04 -0500 Message-ID: <4E2B61B0.3D1E@mindspring.com> Date: Sat, 23 Jul 2011 20:05:04 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: struct inside struct References: <4e2a94c5$0$313$14726298@news.sunsite.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.217.22 X-Trace: sv3-sBHdSvm3JkllSyzMjUTIKDyyIXD5ODHYO2tANZ1+rt9WoEffnjXKxpbpwPSzRq/atp9CkP8FD8HQNsx!5N84zgM5dJ0Qu0fdkzYtkMIO4/F+sTQxodMgifEdsGOZWDWqwVQjhFqo/Qml0n5DnGFroizDyO/L!n5JOK5l9xA== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1657 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:8646 Fonz wrote: > > Kleuskes & Moos wrote: > > >> void print_parent_struct(struct parent s); > >> void print_parent_struct_p(struct parent* ps); > > > > Put the implementation here and loose the forward declarations. > > Until some of the functions start calling each other and therefore > suddenly need to be defined in a particular order. > > Function prototypes exist for a reason... My preference is to write code in such a way so that it is easy to modify. I like function prototypes. -- pete