Path: utzoo!attcan!uunet!husc6!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Simple C Question (was: down) Message-ID: <9226@smoke.BRL.MIL> Date: 24 Dec 88 20:15:10 GMT References: <192@broadway.UUCP> <4385@Portia.Stanford.EDU> <6959@pyr.gatech.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <6959@pyr.gatech.EDU> byron@pyr.UUCP (Byron A Jeff) writes: >Any comments one which one of the ones we've seen is most efficient? Use the obvious ++chcnt; if ( c == '\n' ) ++chcnt; /* for implied CR */