News for hackers. Stuff that matters.
Re:Implementing a dynamically sized array in C by skrebbel on Saturday December 29, 2012 @10:50PM (#4984525)
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

Re:Implementing a dynamically sized array in C by apaprocki on Sunday December 30, 2012 @12:08AM (#4984737)
Re:Implementing a dynamically sized array in C by lazyjones on Sunday December 30, 2012 @02:31AM (#4984997)
Indeed, 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 ... :-/
Re:Implementing a dynamically sized array in C by jlgreco on Sunday December 30, 2012 @01:29AM (#4984893)
Once 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.
Re:Implementing a dynamically sized array in C by Firstmate on Sunday December 30, 2012 @12:27AM (#4984790)
Hi, college student here...what's that do?