diff options
Diffstat (limited to 'line_counter.c')
-rw-r--r-- | line_counter.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/line_counter.c b/line_counter.c deleted file mode 100644 index 0447aa7..0000000 --- a/line_counter.c +++ /dev/null @@ -1,16 +0,0 @@ -#include<stdio.h> - -/* - * Count lines in input - */ -main() { - int c, nl; - - nl = 0; - - while ((c = getchar()) != EOF) - if (c == '\n') - ++nl; - - printf("%d\n", nl); -} |