▲
Hacker News
new
|
best
|
ask
|
show
|
jobs
Goto Considered Sick (for error handling in C)
(thestateofinahaze.net)
3 points by
birdculture
9 hours ago | 1 comments
[–]
ventana
9 hours ago
And if either your linter or you personally hate goto, the acceptable trick for this in C is a "do ... while (0);" loop with a "break;" statement inside it acting exactly like "goto end;".
[–] ventana 9 hours ago