4 ms·
I'm not seeing that? In ARRAY_PUSH_BACK, it just inserts the element directly into the buffer, provided there is enough capacity. There is no separate allocati
by kr7 10y ago
I'm not seeing that?
In ARRAY_PUSH_BACK, it just inserts the element directly into the buffer, provided there is enough capacity. There is no separate allocation for an element.
You don't need to redefine the struct for each element type, since the macro casts 'data' (type void *) to whatever the array's type is.
- oconnor663 10y agoYou're totally right, I don't know what I was reading >.<