4 ms·
When it comes to assignment and comparison in constructs such as while loops, I think this variation adds readability: while (len = getline(line, MAXLINE), len
by Teckla 15y ago
When it comes to assignment and comparison in constructs such as while loops, I think this variation adds readability:
while (len = getline(line, MAXLINE), len > 0) ...
I've never seen anyone else use it, though.