Comment Comment by tonysuper goto is perfectly acceptable in C code. The most common use case is for cleaning up after errors before returning, although they're also used to break out of nested loops cleanly.goto is harmful when used improperly but fine everywhere else. parent tonysuper 12 years ago
goto is harmful when used improperly but fine everywhere else.