]> git.ozlabs.org Git - ccan/blobdiff - ccan/crc/_info
tdb2: reduce transaction before writing to recovery area.
[ccan] / ccan / crc / _info
index c3f0b7635e221b6007f42274995dd3db7e9b2abb..3511b8e2dcc4a16f76ba41bd9614585776ac7551 100644 (file)
@@ -1,4 +1,5 @@
 #include <string.h>
+#include <stdio.h>
 
 /**
  * crc - routines for crc of bytes
  * detect a single error burst of up to 32 bits.
  *
  * Example:
- *     #include <ccan/crc.h>
+ *     #include <ccan/crc/crc.h>
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *
+ *     // Given IHATEMATH outputs 0x98a3b8df
  *     int main(int argc, char *argv[])
  *     {
  *             if (argc != 2) {
  *                             "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 <rusty@rustcorp.com.au>
  */
@@ -35,6 +37,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/array_size\n");
                return 0;
        }