Error handling via GOTO in C

added by DotNetKicks
6/25/2018 1:01:57 PM

2260 Views

In both the Sqlite example and the Linux example, we have two separate and related responsibility. We need to do resource cleanup, but that is complicated by the different stages that this may go through in the function. Given that, GOTO cleanup is the best option available, I think.


0 comments