What is the proper equivalent of “while(true)” in plain C?

Usually nowadays I see

while(1) {
    ...
}

It used to be common to see

for(;;) {
    ...
}

It all gets the point across.

Leave a Comment