void do_lots_of_work(void){int i, j;for(i=0; i<10; i++){for(j=0;j<10; j++){....if(disaster_struck())return;/* Gets us out of the loops, and the function too. */}}}
for(int i =0; i <10; i++){if(timeToStop(i))break;}-(bool) timeToStop:(int) i {for(int j =0; j <10; j++){if(somethingBadHappens)returntrue;}returnfalse;}