WRITE -> F_WRITE, add kbd interrupt code
[unix-history] / usr / src / sys / stand.att / cat.c
CommitLineData
8ae0e4b4 1/*
1a201965
KB
2 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved.
8ae0e4b4 4 *
dbf0c423 5 * %sccs.include.redist.c%
1a201965 6 *
dbf0c423 7 * @(#)cat.c 7.5 (Berkeley) %G%
8ae0e4b4 8 */
68d53a2f
BJ
9
10main()
11{
1a201965 12 register int c, fd;
68d53a2f 13
dd1c081e
MK
14 fd = getfile("File", 0);
15 while ((c = getc(fd)) >= 0)
68d53a2f
BJ
16 putchar(c);
17 exit(0);
18}