The obvious solution can be made to work
C (and C++) guarantees that if two structures begin with the same sequence of component types, they will have compatible layouts
Previous slide
Next slide
Back to first slide
View graphic version