while (condition) {
// do nothing or whatever
};
this is better, why? because i say so... why extra ";"? because i can. no, actually because i want every line to be the same (uniform), since the rest are terminated with ";" this must be too. and how the hell i set the damn tab to be double space distance? in this SMF IDE? not 4 spaces apart? maybe i just replace a tab with "double space" instead..
[absolutionist's hat off]
[/quote]
for(;myFunction(); );
although perhaps more correctly
for(;!myFunction(); );
but I could write
while(myFunction() == OK)
and of course if {} make it more readable there is
{}while(!myFunction() != OK)
Would a comment help?
{/* doing nothing
until the cows come home */}while(!myFunction() != OK)
But just remember to change the comment when writing :
while(!myFunction()) {/*
when the cows come home I will have something to do */};
{} makes code more readable.... Seems like a personal preference to me.