4 ms·
if you don't have a not-invented-here symptom, you could also consider re-using the excellent stb stretchy buffers by the excellent Sean Barrett: http://nothin
by skrebbel 14y ago
if you don't have a not-invented-here symptom, you could also consider re-using the excellent stb stretchy buffers by the excellent Sean Barrett:
http://nothings.org/stb/stretchy_buffer.txt http://nothings.org/stb/stretchy_buffer.txt
- apaprocki 14y agoOr simply use GLib's GArray: http://git.gnome.org/browse/glib/tree/glib/garray.c http://git.gnome.org/browse/glib/tree/glib/garray.c
- Firstmate 14y agoHi, college student here...what's that do?
- jlgreco 14y agoOnce for a project in Uni I ripped some datastructs out of Git's sourcecode. I don't recommend doing that normally of course, but it is a great source of high quality C code.
- lazyjones 14y agoIndeed, this has been done many times before and more carefully. I don't know why this was newsworthy, we used to implement dynamically-sized arrays for our programs in C 20 years ago ... :-/