V7M/sys/sas/scat.c

Compare this file to the similar file:
Show the results in this format:

main()
{
	int c, i;
	char buf[50];

	do {
		printf("File: ");
		gets(buf);
		i = open(buf, 0);
	} while (i <= 0);

	while (((c = getc(i)) > 0) && (c != '$'))
		putchar(c);
	exit(0);
}