1
0
mirror of https://github.com/krislamo/knrc.git synced 2025-09-16 10:09:30 +00:00
Files
knrc/07-extra-blanks.c

17 lines
167 B
C

#include <stdio.h>
int main()
{
int c;
int l;
while ((c = getchar()) != EOF) {
if (c == ' ' && c == l) {
;
} else {
printf("%c", c);
l = c;
}
}
}