X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr%2F_info;h=ea314dbf799a3460db02771aa356991870ec13ce;hp=2c024f0297b57261f30f1e0bde0452422c4d1236;hb=086a4e1915a8307c08320900df0099842a894135;hpb=faace1758e31f87ee2032cc04c6bb41e3cf8f12e diff --git a/ccan/str/_info b/ccan/str/_info index 2c024f02..ea314dbf 100644 --- a/ccan/str/_info +++ b/ccan/str/_info @@ -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 * #include @@ -23,7 +35,7 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: LGPL (2 or any later version) * Author: Rusty Russell */ 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; }