Simple C Question (was: down)

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Dec 25 06:15:10 AEST 1988


In article <6959 at pyr.gatech.EDU> byron at 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 */



More information about the Comp.lang.c mailing list