X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr%2Fdebug.c;h=8c519442d792a77c1339a8de2fc403920b074b12;hb=b989e06c093fb7a2befae277f684fa75b64b9ef5;hp=004a874f7c82778d93ff389d3b542ba0eb5ed9a6;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68;p=ccan diff --git a/ccan/str/debug.c b/ccan/str/debug.c index 004a874f..8c519442 100644 --- a/ccan/str/debug.c +++ b/ccan/str/debug.c @@ -1,3 +1,4 @@ +/* CC0 (Public domain) - see LICENSE file for details */ #include "config.h" #include #include @@ -24,11 +25,13 @@ int str_isascii(int i) return isascii(i); } +#if HAVE_ISBLANK int str_isblank(int i) { assert(i >= -1 && i < 256); return isblank(i); } +#endif int str_iscntrl(int i) { @@ -84,6 +87,9 @@ int str_isxdigit(int i) return isxdigit(i); } +#undef strstr +#undef strchr +#undef strrchr char *str_strstr(const char *haystack, const char *needle) {