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