r/C_Programming • u/SeaInformation8764 • May 26 '26
Project Small and fast vector implementation
https://github.com/ephf/vectorHello, just wanted to share this small (<150 lines) header for dynamic arrays in C. Feel free to look through it and show what could be done better or ask questions. AI was not involved in the making of this.
9
Upvotes
View all comments
Show parent comment
0
u/SeaInformation8764 May 29 '26
Most of the pointer arithmetic helps reduce branching. I'll make a commit with verbose names.