X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcrc%2F_info;h=8a47db969fbe9d5804273696cca3db64ef9fa363;hb=e6abb93d50ba9f1e90163d7db53be70b8ef81a96;hp=c3f0b7635e221b6007f42274995dd3db7e9b2abb;hpb=570c9c555f076e74f46141bb42b5d1d7ac89f632;p=ccan diff --git a/ccan/crc/_info b/ccan/crc/_info index c3f0b763..8a47db96 100644 --- a/ccan/crc/_info +++ b/ccan/crc/_info @@ -1,4 +1,6 @@ +#include "config.h" #include +#include /** * crc - routines for crc of bytes @@ -10,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) { @@ -21,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 */ @@ -35,6 +38,7 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { + printf("ccan/array_size\n"); return 0; }