News for hackers. Stuff that matters.
Re:C – Preliminary C2x Charter by majewsky on Thursday March 17, 2016 @11:31AM (#11304949)
In these cases, I usually use while(true) with break, like

  while (true) {
    const bool flag = do_something();
    if (!flag) break;
  }
Re:C – Preliminary C2x Charter by p1esk on Thursday March 17, 2016 @06:27PM (#11308129)
I'm curious if your version is exactly equivalent to the OP's, or is there something not covered here?
Re:C – Preliminary C2x Charter by jzwinck on Thursday March 17, 2016 @07:19PM (#11308456)
It does what the parent wanted. Just not as concise. do-while isn't all that common anyway.