|
|
1.1 ! root 1: /* cat.c 6.1 83/07/29 */ ! 2: ! 3: main() ! 4: { ! 5: int c, i; ! 6: char buf[50]; ! 7: ! 8: do { ! 9: printf("File: "); ! 10: gets(buf); ! 11: i = open(buf, 0); ! 12: } while (i <= 0); ! 13: ! 14: while ((c = getc(i)) > 0) ! 15: putchar(c); ! 16: exit(0); ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.