aboutsummaryrefslogtreecommitdiffstats
path: root/strip.c
blob: 32b0685fb5b90dedb72f0a3727194fdd9ab497c9 (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main(int argc, char **argv)
{
    int c;
    while((c = getchar()) != EOF)
        if(isdigit(c) || c == '\n')
            putchar(c);
}