I have a C library that looks like this:
struct timeseries *ts_create(void) { /* Allocate some memory and return a pointer. */ } void ts_free(struct timeseri