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

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.
1.1.1.2 ! root        6:  *
        !             7:  * Created by Microsoft Corp. 1987
1.1       root        8:  */
1.1.1.2 ! root        9: 
        !            10: #define INCL_DOSPROCESS
        !            11: 
        !            12: #include <os2def.h>
        !            13: #include <bsedos.h>
1.1       root       14: #include <stdio.h>
                     15: 
                     16: main()
                     17: {
                     18:        int c;
                     19: 
                     20:        while((c = getchar()) != EOF)
                     21:                putchar(toupper(c));
                     22:        printf("Child saw an EOF\n");
                     23:        fflush(stdout);
1.1.1.2 ! root       24:        DosExit(EXIT_THREAD,0);
1.1       root       25: }

unix.superglobalmegacorp.com

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