Hi!
Say I have n similar structures a1,a2,a3,a4,a5,...,an, derived from a base structure a,.
I need to create a function which automatically retrieves the value of one or more variables in all these structures, variables which have the same names since they are inherited from a. The problem is: how can I store the pointers to all those structures in a single bunch that would allow me to use a loop to process them? As far as I know, it is impossible to create a "general type" of pointer (array in this case) that would allow me to store addresses of different structures derived from the same base.