trim-nou8.c
author viric@llimona
Sun, 02 Sep 2007 15:59:31 +0200
changeset 26 700a68421116
parent 5 c87681fff7d3
permissions -rw-r--r--
Adding .hgignore and the ia5test.
#include <stdio.h>

int main()
{
    int i;
    do
    {
        /* Unsigned char cast to int */
        i = getchar();
        if (i == EOF)
            break;
        if (i == '\n' || (i >= ' ' && i < 0xfe))
            putchar(i);
    } while(1);

    return 0;
}