News for hackers. Stuff that matters.
Re:C99/C11 dynamic array that mimics C++'s std::vector by kr7 on Sunday January 08, 2017 @12:51AM (#13348518)
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.

Re:C99/C11 dynamic array that mimics C++'s std::vector by oconnor663 on Sunday January 08, 2017 @04:35PM (#13352159)
You're totally right, I don't know what I was reading >.<