3 Prints files specified on command line to the console in hex. */
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]);
25 int bytes_read = read (fd, buffer, sizeof buffer);
28 hex_dump (pos, buffer, bytes_read, true);