13 main(int argc, char **argv)
18 if (isatty(STDIN_FILENO))
20 fprintf(stderr, "redirect stdin from a .bin file\n");
23 if (fstat(STDIN_FILENO, &s))
35 if (read(STDIN_FILENO, data, n) != n)
43 fprintf(stderr, "bad arguments");
47 start = strtol(argv[1], NULL, 0);
48 int end = strtol(argv[2], NULL, 0);
49 for (int pos = start; pos < end; pos += 8)
52 memcpy(&d, &data[pos], sizeof d);