A crude example of polymorphic class hierarchy using C99
Compile with:
gcc -std=c99 testfancoil.c fancoil.c fancoil2tfixed.c fancoil4tfixed.c actuator.c -o testfancoil && ./testfancoil
The original paper is found here: http://chris-wood.github.io/2016/02/12/Polymorphism-in-C.html