aboutsummaryrefslogtreecommitdiffstats
path: root/src/u_utils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/u_utils.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/u_utils.c b/src/u_utils.c
index 65b59a3..cc2f893 100644
--- a/src/u_utils.c
+++ b/src/u_utils.c
@@ -215,3 +215,20 @@ u_decrease_subpath(char subp[])
*p = 0x00;
}
}
+
+bool_t
+u_ischarset
+(wchar_t c,
+ const wchar_t cs[])
+{
+ wchar_t *p;
+
+ p = (wchar_t*)cs;
+ while (*p != 0x00 && *p != c) {
+ p++;
+ }
+ if (*p != 0x00) {
+ return (TRUE);
+ }
+ return (FALSE);
+}