[LCP]Typedef Struct example from Marshall's site
Andrew Weaver
Andrew.Weaver at tecnomen.fi
Wed Aug 8 15:43:03 UTC 2001
Don't remember exactly but something to do with "forward declaration of
struct".
> -----Original Message-----
> From: Madhav M. [SMTP:madhav3333 at lycos.com]
> Sent: Tuesday, August 07, 2001 5:39 PM
> To: linuxcprogramming at lists.linux.org.au
> Subject: RE: [LCP]Typedef Struct example from Marshall's site
>
>
> Ya, it works for following decl.
> struct ELEMENT *next;
>
> Hey, but i'm not getting, how it resolves reference for
> struct ELEMENT at the above line?
> --
>
> On Tue, 7 Aug 2001 09:13:30
> Andrew Weaver wrote:
> >Yeps, seen something like this before. Try
> >
> >typedef struct { int value;
> > struct ELEMENT *next;
> > } ELEMENT;
> >
>
>
>
> Get 250 color business cards for FREE!
> http://businesscards.lycos.com/vp/fastpath/
> _______________________________________________
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
More information about the linuxCprogramming
mailing list