C library to manage arrays of untyped pointers using dynamic memory allocation