Annotation of os2sdk/demos/examples/pipes/pc.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Child program for pipes example. This program
        !             3:  * is a filter which transliterates lower case
        !             4:  * characters into upper case and passes others
        !             5:  * through unchanged.
        !             6:  */
        !             7: #include <doscalls.h>
        !             8: #include <stdio.h>
        !             9: 
        !            10: main()
        !            11: {
        !            12:        int c;
        !            13: 
        !            14:        while((c = getchar()) != EOF)
        !            15:                putchar(toupper(c));
        !            16:        printf("Child saw an EOF\n");
        !            17:        fflush(stdout);
        !            18:        DOSEXIT(0,0);
        !            19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.