Path: utzoo!attcan!uunet!mcvax!hp4nl!htsa!fransvo From: fransvo@htsa (Frans van Otten) Newsgroups: comp.lang.c Subject: Re: down Message-ID: <664@htsa.uucp> Date: 12 Dec 88 18:36:37 GMT References: Reply-To: fransvo@htsa.UUCP (Frans van Otten) Organization: AHA-TMF (Technical Institute), Amsterdam Netherlands Lines: 11 In article slores%gables.span@umigw.miami.edu (Stanislaw L. Olejniczak) writes: > while ( (c = getchar) != EOF) > chcnt++ += (c == '\n'); Why is chcnt += 1 + (c == '\n') too complex for you ? Besides, it won't work. Try getchar(). -- Frans van Otten Algemene Hogeschool Amsterdam Technische en Maritieme Faculteit fransvo@htsa.uucp