diff options
Diffstat (limited to 'src/wchar/wcspbrk.c')
-rw-r--r-- | src/wchar/wcspbrk.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wchar/wcspbrk.c b/src/wchar/wcspbrk.c new file mode 100644 index 00000000..d1553fd1 --- /dev/null +++ b/src/wchar/wcspbrk.c @@ -0,0 +1,17 @@ +#include <wchar.h> + +wchar_t * wcspbrk(const wchar_t * s1, const wchar_t * s2) +{ + int i; + for (i = 0; s1[i] != L'\0'; i++) { + if (wcschr(s2, s1[i]) != NULL) { + return (wchar_t*)s1 + i; + } + } + + return NULL; +} + +/* +STDC(199409) +*/ |