update for HEAD-2003091401
[reactos.git] / lib / msvcrt / wstring / wcspbrk.c
1 #include <msvcrt/string.h>
2
3 /*
4  * @implemented
5  */
6 wchar_t *wcspbrk(const wchar_t *s1, const wchar_t *s2)
7 {
8   const wchar_t *scanp;
9   int c, sc;
10
11   while ((c = *s1++) != 0)
12   {
13     for (scanp = s2; (sc = *scanp++) != 0;)
14       if (sc == c) {
15         return (wchar_t *)(--s1);
16       }
17   }
18   return 0;
19 }