Look at the Linux kernel. It uses gotos for exactly this purpose, and it’s some of the cleanest C code you’ll ever read.
C++ destructors are great for this, but are not possible in C. Destructors require an object model that C does not have.
C++ destructors are great for this, but are not possible in C. Destructors require an object model that C does not have.
No comments yet.