Attempt at polymorphism in C.