aboutsummaryrefslogtreecommitdiffstats
path: root/strip.c
diff options
context:
space:
mode:
Diffstat (limited to 'strip.c')
-rw-r--r--strip.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/strip.c b/strip.c
new file mode 100644
index 0000000..32b0685
--- /dev/null
+++ b/strip.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ int c;
+ while((c = getchar()) != EOF)
+ if(isdigit(c) || c == '\n')
+ putchar(c);
+}