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.
while (len = getline(line, MAXLINE), len > 0) ...
I've never seen anyone else use it, though.
No comments yet.