This topic is now archived and is closed to further replies.


C programming makes my head spin....

Recommended Posts

OK, in vanilla C (no +''s included), how can you define a struct that contains pointers to an object of the same type you are defining? Example: In C++, this would work: struct foo; struct foo { int fooInt; foo* fooPointer; }; but it doesn''t in C. Can someone explain how you''d write that in C? Thnx in advnce. "You TK''ed my chicken!"

Share this post

Link to post
Share on other sites