An example of creating a C library of generic lists