3 Prints files specified on command line to the console. */
9 main (int argc, char *argv[])
13 for (i = 1; i < argc; i++)
15 int fd = open (argv[i]);
18 printf ("%s: open failed\n", argv[i]);
24 int bytes_read = read (fd, buffer, sizeof buffer);
27 write (STDOUT_FILENO, buffer, bytes_read);