I am using this structure for elements of a menu with ModeSec_t being enumeration type. I want to use a different list for a sub menu w/o having to declare a new structure and current list has 50 elements. What is the most efficient way to point to either list
rjenkinsgb thanks for the info. The issue that I have is ModeSec_t is a typedef'ed enum list. I want to change this to point to that list or another list w/o declaring another variable (i.e. the same variable for either list)
TextDisplayAdd_t is a structure type with ModeSec_t name and ModeSec_t disp[6] elements. ModeSec_t is an enumeration type. I want to make the array to point to ModeSec_t or another enumeration type.
Not quite sure I follow you here, but you can't have a pointer to an enum type. You can have a pointer to a variable of type ModeSec_t, but not ModeSec_t itself.
An enum type is just another definition for an int, so it has no storage. In your structure above, 'name' and 'disp[6]' are just fancy names for integers.
Not quite sure I follow you here, but you can't have a pointer to an enum type. You can have a pointer to a variable of type ModeSec_t, but not ModeSec_t itself.
An enum type is just another definition for an int, so it has no storage. In your structure above, 'name' and 'disp[6]' are just fancy names for integers.