Can I inherit a structure in C? If yes, how?
I like and used the idea of Typesafe inheritance in C.
For example:
struct Animal
{
    int weight;
};
struct Felidae
{
    union {
      struct Animal animal;
    } base;
    int furLength;
};
struct Leopard
{
    union {
      struct Animal animal;
      struct Felidae felidae;
    } base;
    int dotCounter;
};
Usage:
struct Leopard leopard;
leopard.base.animal.weight = 44;
leopard.base.felidae.furLength = 2;
leopard.dotCounter = 99;