Inheritance in C and Typedef Example