Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Teckla
on Jan 11, 2012
|
parent
|
context
|
favorite
| on:
Deconstructing "K&R C"
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
while (len = getline(line, MAXLINE), len > 0) ...
I've never seen anyone else use it, though.