P
Patrick Guio
Dear all,
I wonder whether it is possible to simulate simple polymorphism in C?
I explain what I would like to do. I have defined several structures
mapping different header formats. They all have the same size but have
different fields.
So I have something like struct header1, header2 and so on. Now my
question is how would you define/create an array that can contains
pointers to header1, header2 and so on?
Sincerely,
Patrick
I wonder whether it is possible to simulate simple polymorphism in C?
I explain what I would like to do. I have defined several structures
mapping different header formats. They all have the same size but have
different fields.
So I have something like struct header1, header2 and so on. Now my
question is how would you define/create an array that can contains
pointers to header1, header2 and so on?
Sincerely,
Patrick