xref: /csrg-svn/sys/stand/cat.c (revision 63271)
1 /*-
2  * Copyright (c) 1993 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 char copyright[] =
10 "@(#) Copyright (c) 1993 The Regents of the University of California.\n\
11  All rights reserved.\n";
12 #endif /* not lint */
13 
14 #ifndef lint
15 static char sccsid[] = "@(#)cat.c	7.1 (Berkeley) 06/11/93";
16 #endif /* not lint */
17 
18 main()
19 {
20 	register int c, fd;
21 	char c;
22 
23 	fd = getfile("File", 0);
24 	while (read(fd, &c, 1) == 1)
25 		putchar(c);
26 	exit(0);
27 }
28