File:  [OS/2 SDKs] / os2sdk / demos / examples / pipes / pc.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:10 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1988, HEAD
Microsoft OS/2 SDK 03-01-1988

/*
 * Child program for pipes example. This program
 * is a filter which transliterates lower case
 * characters into upper case and passes others
 * through unchanged.
 *
 * Created by Microsoft Corp. 1987
 */

#define INCL_DOSPROCESS

#include <os2def.h>
#include <bsedos.h>
#include <stdio.h>

main()
{
	int c;

	while((c = getchar()) != EOF)
		putchar(toupper(c));
	printf("Child saw an EOF\n");
	fflush(stdout);
	DosExit(EXIT_THREAD,0);
}

unix.superglobalmegacorp.com

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