News for hackers. Stuff that matters.
Re:C99/C11 dynamic array that mimics C++'s std::vector by maxlybbert on Sunday January 08, 2017 @03:34AM (#13348910)
Aargh! I should look at nonstandard features that I don't use before I say they solve problems. GCC's construcotrs and destructors (outside of C++ code) are limited to globals and statics. Marking a function a constructor guarantees it's automatically called before main(), and marking a function a destructor guarantees it's automatically called after main() completes.

There are no comments on this comment yet.