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: }

Defined functions

main defined in line 9; never used
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 808
Valid CSS Valid XHTML 1.0 Strict