trim-nou8.c
author viric <viriketo@gmail.com>
Fri, 30 Mar 2012 18:56:20 +0200
changeset 33 ebbedaa090be
parent 5 c87681fff7d3
permissions -rw-r--r--
Adding what I had in the web for zparsetext (akcentiga)
#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;
}