electroRF
Member
Hi,
I want to define struct (in C), which will have n items, each item is composed of an index (Unsigned int) and a pointer.
I'd like to initialize the struct upon definition, so that:
- 1st Item will have an index equal to 0, and an address &globalVar0,
- 2nd Item will have an index equal to 1, and an address &globalVar1,
- and so on.
How would you typedef such struct?
Thank you.
I want to define struct (in C), which will have n items, each item is composed of an index (Unsigned int) and a pointer.
I'd like to initialize the struct upon definition, so that:
- 1st Item will have an index equal to 0, and an address &globalVar0,
- 2nd Item will have an index equal to 1, and an address &globalVar1,
- and so on.
How would you typedef such struct?
Thank you.