Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-4/lib/test/passon.c
There are 6 other files named passon.c in the archive. Click here to see a list.
/* Simple program to just feed stdin to stdout until EOF. */
/* Echo of args added to debug redirection problems. */
#include <stdio.h>
main(argc,argv)
int argc;
char **argv;
{
    register int c;

    if (argc) {
	printf("Args: %s", *argv);
	while (--argc > 0)
	    printf(" %s", *++argv);
	putchar('\n');
    }

    while((c = getchar()) != EOF)
	putchar(c);
}