Yes, that looks exactly analogous, but my question is why people don't use the perfectly good built-in conditional termination in a while or for loop and instead add on an if statement.
(Also, I don't understand why a for(;;) loop is more attractive than a while(1) loop.)