:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / msvcrt / wstring / wcspbrk.c
1 #include <msvcrt/string.h>
2
3 wchar_t *wcspbrk(const wchar_t *s1, const wchar_t *s2)
4 {
5   const wchar_t *scanp;
6   int c, sc;
7
8   while ((c = *s1++) != 0)
9   {
10     for (scanp = s2; (sc = *scanp++) != 0;)
11       if (sc == c) {
12         return (wchar_t *)(--s1);
13       }
14   }
15   return 0;
16 }