Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-5/lib/test/tcat.c
There are 5 other files named tcat.c in the archive. Click here to see a list.
/* Simple CAT-style test program for I/O
*/

#include <stdio.h>

main(argc, argv)
int argc;
char **argv;
{
	int c;
	int pid = getpid();

	while ((c = getchar()) != EOF) {
		if (c == 0)
			fprintf(stderr,"%o: Null byte seen on input!\n", pid);
		putchar(c);
	}
	if (ferror(stdin)) {
		perror("Input error on stdin!  errno = ");
	}
}