4 * crc - routines for crc of bytes
6 * Cyclic Redundancy Check routines. These are reasonably fast
7 * checksum routines, but not suitable for cryptographic use.
9 * They are useful for simple error detection, eg. a 32-bit CRC will
10 * detect a single error burst of up to 32 bits.
13 * #include <ccan/crc.h>
17 * int main(int argc, char *argv[])
20 * fprintf(stderr, "Usage: %s <string>\n"
21 * "Prints 32 bit CRC of the string\n", argv[0]);
24 * printf("0x%08x\n", crc32c(argv[1], strlen(argv[1])));
28 * Licence: GPL (v2 or later)
29 * Author: Gary S. Brown, Clay Haapala
30 * Maintainer: Rusty Russell <rusty@rustcorp.com.au>
32 int main(int argc, char *argv[])
37 if (strcmp(argv[1], "depends") == 0) {