]> git.ozlabs.org Git - ccan/blobdiff - ccan/strset/_info
tools/configurator: add HAVE_SYS_TERMIOS_H
[ccan] / ccan / strset / _info
index 81e8f53cca08b73a3c1322d2da1cb6b7d4064c9a..1c7426e66973c2b7b3687ab1d3aca38d689848c9 100644 (file)
@@ -22,7 +22,7 @@
  *     static bool dump(const char *member, void *unused)
  *     {
  *             printf("%s ", member);
- *             return false;
+ *             return true; // Keep going with iteration.
  *     }
  *
  *     int main(void)
@@ -38,7 +38,7 @@
  *             for (word = strtok(file, " \t\r\n");
  *                  word;
  *                  word = strtok(NULL, " \t\r\n")) {
- *                     strset_set(&words, word);
+ *                     strset_add(&words, word);
  *             }
  *             strset_iterate(&words, dump, NULL);
  *             printf("\n");
@@ -47,7 +47,7 @@
  *     // Given "foo bar" outputs "bar foo "
  *     // Given "foo foo bar" outputs "bar foo "
  *
- * 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