X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcrc%2F_info;h=8a47db969fbe9d5804273696cca3db64ef9fa363;hb=9f06b8f85927202c05751e43f285cbef8054052b;hp=c505a2b63987f1643c3fd7c5cb3b95a8ff949d14;hpb=86b394d9b48fb29053347cde1336e819187ea93b;p=ccan diff --git a/ccan/crc/_info b/ccan/crc/_info index c505a2b6..8a47db96 100644 --- a/ccan/crc/_info +++ b/ccan/crc/_info @@ -1,3 +1,4 @@ +#include "config.h" #include #include @@ -11,10 +12,11 @@ * detect a single error burst of up to 32 bits. * * Example: - * #include + * #include * #include * #include * + * // Given "IHATEMATH" outputs 0x98a3b8df * int main(int argc, char *argv[]) * { * if (argc != 2) { @@ -22,11 +24,11 @@ * "Prints 32 bit CRC of the string\n", argv[0]); * exit(1); * } - * printf("0x%08x\n", crc32c(argv[1], strlen(argv[1]))); + * printf("0x%08x\n", crc32c(0, argv[1], strlen(argv[1]))); * exit(0); * } * - * Licence: GPL (v2 or any later version) + * License: GPL (v2 or any later version) * Author: Gary S. Brown, Clay Haapala * Maintainer: Rusty Russell */