1 /*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char copyright[] = 10 "@(#) Copyright (c) 1993\n\ 11 The Regents of the University of California. All rights reserved.\n"; 12 #endif /* not lint */ 13 14 #ifndef lint 15 static char sccsid[] = "@(#)cat.c 8.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