|
|
1.1 root 1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)cat.c 7.1 (Berkeley) 6/5/86
7: */
8:
9: main()
10: {
11: int c, i;
12: char buf[50];
13:
14: do {
15: printf("File: ");
16: gets(buf);
17: i = open(buf, 0);
18: } while (i <= 0);
19:
20: while ((c = getc(i)) > 0)
21: putchar(c);
22: exit(0);
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.