The best option is to put it in its own function and use a return.

Failing that, the next most efficient option (excluding goto because I would not stoop that low) is to do this:

for(i=0;...