[LCP]Typedef Struct example from Marshall's site
Andrew Weaver
Andrew.Weaver at tecnomen.fi
Tue Aug 7 16:15:04 UTC 2001
Yeps, seen something like this before. Try
typedef struct { int value;
struct ELEMENT *next;
} ELEMENT;
> -----Original Message-----
> From: Chris R. Adams [SMTP:chrisa at uol.com.br]
> Sent: Tuesday, August 07, 2001 6:33 AM
> To: C Programming List (E-mail)
> Subject: [LCP]Typedef Struct example from Marshall's site
>
> Hi - I was just going over a great C review site - Dave Marshall's at
> http://www.cs.cf.ac.uk/Dave/C/ and found a strange struct example I can't
> get to compile.
>
> .
> .-----------------------------
>
> I get: " parse error before ELEMENT, warning: no semicolon at end of
> struct
> or union, ELEMENT undeclared, parse error before return
>
> Perhaps its very late and I'm becoming disillusional as I typically become
> at this hour, but what am I missing here. Shoudn't this work. It seems
> to
> be spitting up on the self reference.
>
> _______________________________________________
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
More information about the linuxCprogramming
mailing list