11 int main(int argc, char *argv[])
13 unsigned long ck = 0, t = 0;
20 int opt = getopt(argc, argv, "b:r");
23 case 'b': ns = strtoul(optarg, 0, 0); break;
24 case 'r': f |= F_ROLLING; break;
30 if (!fread(b, 4, 1, stdin)) break;
31 x = (b[0] << 0) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24);
35 fprintf(stderr, "%s: read error: %s\n", argv[0], strerror(errno));
38 printf("%08lx", ck & 0xffffffff);
39 if (f & F_ROLLING) printf(" %lu", t & 0xffffffff);