We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f07f0 commit 4544b06Copy full SHA for 4544b06
1 file changed
bin/count.c
@@ -13,10 +13,10 @@ int main( void )
13
c = fgetc(stdin);
14
while(c != EOF)
15
{
16
- if (c=='.' || c=='E' || c=='F') count++;
+ if (c=='.' || c=='E' || c=='F' || c=='s') count++; else count=0;
17
fputc(c, stdout);
18
fflush(stdout);
19
- if ( count % 76 == 0) {
+ if (count && count % 76 == 0) {
20
fprintf(stderr, "%4d", count);
21
fflush(stderr);
22
}
0 commit comments