Show HN: Generic dynamic array in almost 2k lines of C
https://github.com/krotera/just-c-things/tree/main/Vec
Yet another C vector implementation! For both it and the title, I took inspiration from an implementation posted a few months ago: https://news.ycombinator.com/item?id=34973210That implementation's impressive, over my head, and unsafe, containing overflows and footguns. Its approach, to quote the author, is "all C code is unsafe". ;p As a Rust fan, I agree, and that's in line with my impression...