]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/_info
tdb2: copy tdb1's changed expansion logic.
[ccan] / ccan / str / _info
index 0438ccfdbcd2bbff8bd2a87b82baa7fc3a36cead..a6858c3c7b42708af94c8817881691406768d854 100644 (file)
@@ -8,6 +8,18 @@
  * This is a grab bag of functions for string operations, designed to enhance
  * the standard string.h.
  *
+ * Note that if you define CCAN_STR_DEBUG, you will get extra compile
+ * checks on common misuses of the following functions (they will now
+ * be out-of-line, so there is a runtime penalty!).
+ *
+ *     strstr, strchr, strrchr:
+ *             Return const char * if first argument is const (gcc only).
+ *
+ *     isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph,
+ *         islower, isprint, ispunct, isspace, isupper, isxdigit:
+ *             Static and runtime check that input is EOF or an *unsigned*
+ *             char, as per C standard (really!).
+ *
  * Example:
  *     #include <stdio.h>
  *     #include <ccan/str/str.h>
@@ -23,7 +35,7 @@
  *             return 0;
  *     }
  *
- * License: LGPL (2 or any later version)
+ * License: Public domain
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
@@ -32,6 +44,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/build_assert\n");
                return 0;
        }