2 #include <ccan/str/str_debug.h>
8 /* Because we mug the real ones with macros, we need our own wrappers. */
11 assert(i
>= -1 && i
< 256);
15 int str_isalpha(int i
)
17 assert(i
>= -1 && i
< 256);
21 int str_isascii(int i
)
23 assert(i
>= -1 && i
< 256);
28 int str_isblank(int i
)
30 assert(i
>= -1 && i
< 256);
35 int str_iscntrl(int i
)
37 assert(i
>= -1 && i
< 256);
41 int str_isdigit(int i
)
43 assert(i
>= -1 && i
< 256);
47 int str_isgraph(int i
)
49 assert(i
>= -1 && i
< 256);
53 int str_islower(int i
)
55 assert(i
>= -1 && i
< 256);
59 int str_isprint(int i
)
61 assert(i
>= -1 && i
< 256);
65 int str_ispunct(int i
)
67 assert(i
>= -1 && i
< 256);
71 int str_isspace(int i
)
73 assert(i
>= -1 && i
< 256);
77 int str_isupper(int i
)
79 assert(i
>= -1 && i
< 256);
83 int str_isxdigit(int i
)
85 assert(i
>= -1 && i
< 256);
93 char *str_strstr(const char *haystack
, const char *needle
)
95 return strstr(haystack
, needle
);
98 char *str_strchr(const char *haystack
, int c
)
100 return strchr(haystack
, c
);
103 char *str_strrchr(const char *haystack
, int c
)
105 return strrchr(haystack
, c
);