Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!uflorida!rex!ginosko!aplcen!arrom
From: arrom@aplcen.apl.jhu.edu (Ken Arromdee)
Newsgroups: comp.lang.c
Subject: Re: comma operator
Message-ID: <2650@aplcen.apl.jhu.edu>
Date: 14 Aug 89 18:29:42 GMT
References: <63244@linus.UUCP> <2300@oakhill.UUCP>
Reply-To: arrom@aplcen.apl.jhu.edu (Ken Arromdee (600.429))
Organization: Johns Hopkins University
Lines: 12

>while ((ch = getchar()), ch != EOF && ch != '\n')
>Although I have never been quite satisfied with this, I have never found
>a structure that does this which I find more satisfying.  Any comments
>from the peanut gallery?

while ((ch = getchar()) != EOF && ch != '\n')
--
"The fact is self evident from the text and requires no supporting argument."
  --Tim Maroney

Kenneth Arromdee (UUCP: ....!jhunix!ins_akaa; BITNET: g49i0188@jhuvm;
     INTERNET: arromdee@crabcake.cs.jhu.edu) (please, no mail to arrom@aplcen)