C library for handling generic data structures