:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / msvcrt / mbstring / mbsspn.c
1 #include <msvcrt/mbstring.h>
2
3 // not correct
4 size_t _mbsspn(const unsigned char *s1, const unsigned char *s2)
5 {
6   const char *p = s1, *spanp;
7   char c, sc;
8
9  cont:
10   c = *p++;
11   for (spanp = s2; (sc = *spanp++) != 0;)
12     if (sc == c)
13       goto cont;
14   return (size_t)(p - 1) - (size_t)s1;
15 // - (char *)s1);
16 }