From 4544b0643fb54ddcdf171aa45a9477dddf3614d8 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 6 Jun 2017 07:26:17 +0000 Subject: [PATCH] Tweaks to count.c - Legacy-Id: 13537 --- bin/count.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/count.c b/bin/count.c index 869733df6..517cb8d99 100644 --- a/bin/count.c +++ b/bin/count.c @@ -13,10 +13,10 @@ int main( void ) c = fgetc(stdin); while(c != EOF) { - if (c=='.' || c=='E' || c=='F') count++; + if (c=='.' || c=='E' || c=='F' || c=='s') count++; else count=0; fputc(c, stdout); fflush(stdout); - if ( count % 76 == 0) { + if (count && count % 76 == 0) { fprintf(stderr, "%4d", count); fflush(stderr); }