-#include <string.h>
#include "config.h"
+#include <stdio.h>
+#include <string.h>
/**
* strmap - an ordered map of strings to values
* http://cr.yp.to/critbit.html
* http://github.com/agl/critbit (which this code is based on)
*
- * License: Public domain (but some dependencies are LGPL!)
+ * License: CC0 (but some dependencies are LGPL!)
* Author: Rusty Russell <rusty@rustcorp.com.au>
* Ccanlint:
* license_depends_compat FAIL
* static bool dump(const char *member, size_t value, void *unused)
* {
* printf("%s at %zu. ", member, value);
- * // false means keep going with iteration.
- * return false;
+ * // true means keep going with iteration.
+ * return true;
* }
*
* int main(int argc, char *argv[])
* printf("\n");
* return 0;
* }
- * // Given 'foo' outputs 'foo at 1. '
- * // Given 'foo bar' outputs 'bar at 2. foo at 1. '
- * // Given 'foo foo bar zebra' outputs 'bar at 3. foo at 1. zebra at 4. '
+ * // Given "foo" outputs "foo at 1. \n"
+ * // Given "foo bar" outputs "bar at 2. foo at 1. \n"
+ * // Given "foo foo bar zebra" outputs "bar at 3. foo at 1. zebra at 4. \n"
*/
int main(int argc, char *argv[])
{