diff options
author | Eric Wong <e@80x24.org> | 2014-05-22 22:11:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-05-22 22:44:31 +0000 |
commit | 6189377b88318c5cc53bbfd0ec7983a0a396253b (patch) | |
tree | 7f9936eb06d475abb8d610ee2eaa44e3b7c72e9d /ccan/str/str_debug.h | |
parent | cd7b4cbacbc968bd4d7ed5fed9122f75d229793c (diff) | |
download | cmogstored-6189377b88318c5cc53bbfd0ec7983a0a396253b.tar.gz |
Diffstat (limited to 'ccan/str/str_debug.h')
-rw-r--r-- | ccan/str/str_debug.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ccan/str/str_debug.h b/ccan/str/str_debug.h new file mode 100644 index 0000000..92c10c4 --- /dev/null +++ b/ccan/str/str_debug.h @@ -0,0 +1,30 @@ +/* CC0 (Public domain) - see LICENSE file for details */ +#ifndef CCAN_STR_DEBUG_H +#define CCAN_STR_DEBUG_H + +/* #define CCAN_STR_DEBUG 1 */ + +#ifdef CCAN_STR_DEBUG +/* Because we mug the real ones with macros, we need our own wrappers. */ +int str_isalnum(int i); +int str_isalpha(int i); +int str_isascii(int i); +#if HAVE_ISBLANK +int str_isblank(int i); +#endif +int str_iscntrl(int i); +int str_isdigit(int i); +int str_isgraph(int i); +int str_islower(int i); +int str_isprint(int i); +int str_ispunct(int i); +int str_isspace(int i); +int str_isupper(int i); +int str_isxdigit(int i); + +char *str_strstr(const char *haystack, const char *needle); +char *str_strchr(const char *s, int c); +char *str_strrchr(const char *s, int c); +#endif /* CCAN_STR_DEBUG */ + +#endif /* CCAN_STR_DEBUG_H */ |