1: /*
2: * Copyright (c) 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 1.1 (2.10BSD Berkeley) 12/1/86
7: */
8:
9: char module[] = "cat"; /* module name -- used by trap */
10: main()
11: {
12: int c, i;
13: char buf[50];
14:
15: printf("%s\n",module);
16: do {
17: printf("File: ");
18: gets(buf);
19: i = open(buf, 0);
20: } while (i <= 0);
21:
22: while ((c = getc(i)) > 0)
23: putchar(c);
24: exit(0);
25: }
Defined functions
main
defined in line
10;
never used
Defined variables
module
defined in line
9; used 1 times