[LCP] Circular Struct Definitions

Y Giridhar Appaji Nag giridhar at appaji.net
Thu Mar 5 17:57:07 EST 2009


Hi Chris,

See the C FAQ on self and mutually referential structures.

http://c-faq.com/struct/selfref.html
http://c-faq.com/decl/mutrefstructs.html

Giridhar

On 09/03/02 15:45 -0900, Christopher Howard said ...
> I'm writing these structs to represent two ideas in my program: one is  
> menu items and the other is menus (i.e., lists of menu items -- I call  
> them "Bundles"). The problem is that I not only want menus to contain  
> arrays of menu items, but I also want menu items to contain references to 
> other menus. The purpose of this is to allow for "sub-menus", so that  
> selecting a menu item takes the user to another menu.

-- 
Y Giridhar Appaji Nag | http://appaji.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20090305/e567a41f/attachment.pgp 


More information about the linuxCprogramming mailing list