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


Groups > comp.lang.c > #8646

Re: struct inside struct

Message-ID <4E2B61B0.3D1E@mindspring.com> (permalink)
Date 2011-07-23 20:05 -0400
From pete <pfiland@mindspring.com>
Organization PF
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>

Show all headers | 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