Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!think!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Simple C Question (was: down) Message-ID: <9149@smoke.BRL.MIL> Date: 12 Dec 88 17:32:41 GMT References: <192@broadway.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <192@broadway.UUCP> furlani@broadway.UUCP (John L. Furlani) writes: - This snippit of code should do it. It will count the newlines, but it -won't count the returns. - while ((c = getc(infile)) != EOF) - if (c == '\r') chcnt++; Oh, really?