I\'ve noticed that at several places in our code base we use dynamically expanding arrays, i.e. a base array coupled with an element counter and a \"max elements\" value.
Personally, I prefer "Gena" library. It closely resembles stl::vector
in pure C89.
It is comfortable to use because you can:
vec[k][j]
;You can check it out here:
https://github.com/cher-nov/Gena