Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #8646

Re: struct inside struct

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> (permalink)
Date Sat, 23 Jul 2011 20:05:04 -0400
From pete <pfiland@mindspring.com>
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> <cb4393dd-5f67-4720-b385-aebcb5a6c75b@o4g2000vbv.googlegroups.com> <slrnj2le2a.kd2.fonz@spectrum.skysmurf.nl>
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

Show key headers only | View raw


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

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

struct inside struct arnuld <sunrise@invalid.address> - 2011-07-23 09:30 +0000
  Re: struct inside struct "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-07-23 04:32 -0700
    Re: struct inside struct Fonz <fonz@bogus.from.address.nl> - 2011-07-23 12:02 +0000
      Re: struct inside struct pete <pfiland@mindspring.com> - 2011-07-23 20:05 -0400
        Re: struct inside struct "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-07-24 01:20 -0700
    Re: struct inside struct Ike Naar <ike@iceland.freeshell.org> - 2011-07-24 10:27 +0000
      Re: struct inside struct "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-07-24 03:34 -0700

csiph-web