C programming style

Michael J. Tuciarone tooch at avsdS.UUCP
Fri Jul 19 09:54:33 AEST 1985


Dammit! Nroff zapped me again!

The line in my previous posting <74 at avsdS.UUCP> which read

>         while ( (*cp++ = getchar()) != '0 )
>                 ;

and was supposed to be a glorious example of good C style
that would, shining before us like the Holy Grail, lead us
to the Promised Land of Good Coding Practices...
                                                got screwed up. 
It was *supposed* to read

         while ( (*cp++ = getchar()) != '\n' )
                 ;                       ^^^

Thus does the Master, whilst enlightening the Novices, fall flat
upon his Ass. Flames will be received in long-suffering silence.

Mike Tuciarone
...{hplabs, decvax}!atd!tooch at avsdS

And hey...hey!...HEYY!!!
	...Let's be *careful* out there.



More information about the Comp.lang.c mailing list