[LCP]Typedef Struct example from Marshall's site
Chris R. Adams
chrisa at uol.com.br
Tue Aug 7 13:20:04 UTC 2001
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.
typedef struct { int value;
ELEMENT *next;
} ELEMENT;
.
.-----------------------------
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.
More information about the linuxCprogramming
mailing list