]> git.ozlabs.org Git - ccan/blobdiff - ccan/crc/_info
ccan/crc: remove broken "crc32c" routines which gave wrong results.
[ccan] / ccan / crc / _info
index 7812f212d445a1683dd042c632091209d64f3682..d786aa2509d0e9330ed564e046fa356a1ebb1eb9 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include <string.h>
 #include <stdio.h>
 
@@ -15,6 +16,7 @@
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *
+ *     // Given "IHATEMATH" outputs 0x35c6ad5a
  *     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(0, argv[1], strlen(argv[1])));
+ *             printf("0x%08x\n", crc32_ieee(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>
  */