J
John Bode
Jarno A Wuolijoki said:And that's supposed to be easy to understand?
Yes, after your brain has been sufficiently damaged^H^H^H^H^H^H^H
trained to recognize certain C idioms.
Jarno A Wuolijoki said:And that's supposed to be easy to understand?
"... the idiom should be mastered,
because you will see it frequently in C programs."
Mastering the idiom means, that you will recognize it,
and know at a glance, what it means.
If you have not mastered it, then it may be tough.
But the mastery that particular idiom, is more common than not,
among experienced C programmers.
A few snippets for you:
Jarno A Wuolijoki said:Note that the "idiomatic strcpy" performed a transgression that
none of your perfectly readable snippets did:
while (loop_body) /*nothing*/ ;
Kevin said:.... snip ...
while (sideeffects) { }
might well be a clearer way of writing it. It's pretty hard to
misinterpret that.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.