Original Post
This is how you can make a loop go on forever. for(;;) forever loops are useful only when you have another loop that is nested between it. The number of nested loops doesn't matter. Example: for(;;){ while(condition){ do something } } But you want to end the loop or do the loop over again. You use the break; or continue; Example: for(;;){ while(condition){ do something continue; } break; } While you don't have to use the continue; statment you should always use the break; in a forever loop. Other alternatives would be abort;