Comment
Comment by ghswa
I'm enjoying this so far although a couple of things have made me scratch my head in the example code allocating a vector.
Accessing the fields of vc before the NULL check seems like an error. Also, would it not be simpler to change type of the size parameter to size_t so that it's the same type as the size field of the vector struct?