Re: Puzzle!
In article <1180997619.081 045.144450@d30g 2000prg.googleg roups.com>,
Old Wolf <oldwolf@inspir e.net.nzwrote:
> ^^
> {should be !=) :-)
Exactly -- and my posting specifically indicated that as the
intended behaviour.
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
In article <1180997619.081 045.144450@d30g 2000prg.googleg roups.com>,
Old Wolf <oldwolf@inspir e.net.nzwrote:
>On Jun 2, 10:17 am, CBFalconer <cbfalco...@yah oo.comwrote:
>Walter Roberson wrote:
while ( (c = getchar()) != EOF && c == '\n' )
{ /* empty loop body */ }
{ /* empty loop body */ }
> {should be !=) :-)
>The original was correct; the purpose of the code
>is to consume '\n' characters.
>is to consume '\n' characters.
intended behaviour.
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
Comment