BSD 4_1_snap development
[unix-history] / sys / stand / cat.c
/* cat.c 4.2 81/03/15 */
main()
{
int c, i;
char buf[50];
do {
printf("File: ");
gets(buf);
i = open(buf, 0);
} while (i <= 0);
while ((c = getc(i)) > 0)
putchar(c);
exit(0);
}