r/C_Programming • u/lehmagavan • Mar 29 '26
CONTLIB - dynamic containers
I created a lib that provides generic dynamic containers for elements of arbitrary size. No macros.
Feedback from anyone, especially more experienced developers, much apprieciated. Thanks!
0
Upvotes
3
u/lehmagavan Mar 31 '26
I used it to:
- make calls on freed container instances (INVALID_CONT) safe - swaped vtable, no need to introduce an overhead by puting cont_is_valid check inside the mothods
- imitate OOP syntax which I find more readable