diff options
Diffstat (limited to 'whitespace_converter.c')
-rw-r--r-- | whitespace_converter.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/whitespace_converter.c b/whitespace_converter.c deleted file mode 100644 index 6fee3bd..0000000 --- a/whitespace_converter.c +++ /dev/null @@ -1,18 +0,0 @@ -#include<stdio.h> - -/* - * Convert concurrent blanks to single blank. - */ -main() { - int c; - - while ((c = getchar()) != EOF) { - if (c == ' ') { - while ((c = getchar()) == ' ') - ; - putchar(' '); - } - - putchar(c); - } -} |