Tweaks to count.c

- Legacy-Id: 13537
This commit is contained in:
Henrik Levkowetz 2017-06-06 07:26:17 +00:00
parent 26f07f0a29
commit 4544b0643f

View file

@ -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);
}