summaryrefslogtreecommitdiff
path: root/wince/string_wce.c
diff options
context:
space:
mode:
Diffstat (limited to 'wince/string_wce.c')
-rw-r--r--wince/string_wce.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/wince/string_wce.c b/wince/string_wce.c
index 2a5514913d..a1ee075077 100644
--- a/wince/string_wce.c
+++ b/wince/string_wce.c
@@ -66,4 +66,24 @@ int stricmp( const char *s1, const char *s2 )
return n;
}
+
+char *strpbrk(const char *str, const char *cs)
+{
+ wchar_t *wstr, *wcs, *w;
+ char *s = NULL;
+
+ wstr = wce_mbtowc(str);
+ wcs = wce_mbtowc(cs);
+
+ w = wcspbrk(wstr, wcs);
+
+ if( w!=NULL )
+ s = str + (wcs-wstr)/sizeof(wchar_t);
+
+ free(wstr);
+ free(wcs);
+
+ return s;
+}
+
#endif