golang's defer in C (kind of)
Quite often I find myself landing on gcc’s attributes documentation page. Not
sure how that happens but this is always a gold mine. I’ve recently discovered
__attribute__((cleanup(func))), which allows attaching functions to
variables. These functions are executed when the variable goes out of scope.
Sounds familiar?






