From 0a23128c376540cd139dde19a1f09ae40617e670 Mon Sep 17 00:00:00 2001 From: EliteTK Date: Sat, 6 Sep 2014 18:33:33 +0100 Subject: Latest 'stuff' --- strip.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 strip.c (limited to 'strip.c') 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 + +int main(int argc, char **argv) +{ + int c; + while((c = getchar()) != EOF) + if(isdigit(c) || c == '\n') + putchar(c); +} -- cgit v1.2.3-54-g00ecf