Goto is rarely, if ever the correct solution. Even oogabooga's code doesn't warrant goto:



void its_own_function() {
while (whatever) {
while (something) {
if...