Commit 0dae2583 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Implemented msvcrt._mbspbrk.

parent 78a4134e
...@@ -650,3 +650,23 @@ char *_mbsrev(char *str) ...@@ -650,3 +650,23 @@ char *_mbsrev(char *str)
return str; return str;
} }
/*********************************************************************
* _mbspbrk (MSVCRT.@)
*/
const char *_mbspbrk(const char *str, const char *accept)
{
const char *p;
while(*str)
{
for(p = accept; *p; p += (MSVCRT_isleadbyte(*p)?2:1) )
{
if (*p == *str)
if( !MSVCRT_isleadbyte(*p) || ( *(p+1) == *(str+1) ) )
return str;
}
str += (MSVCRT_isleadbyte(*str)?2:1);
}
return NULL;
}
...@@ -383,7 +383,7 @@ debug_channels (msvcrt) ...@@ -383,7 +383,7 @@ debug_channels (msvcrt)
@ stub _mbsnicoll #(str str long) @ stub _mbsnicoll #(str str long)
@ cdecl _mbsninc(str long) _mbsninc @ cdecl _mbsninc(str long) _mbsninc
@ cdecl _mbsnset(str long long) _mbsnset @ cdecl _mbsnset(str long long) _mbsnset
@ stub _mbspbrk #(str str) @ cdecl _mbspbrk(str str) _mbspbrk
@ cdecl _mbsrchr(str long) _mbsrchr @ cdecl _mbsrchr(str long) _mbsrchr
@ cdecl _mbsrev(str) _mbsrev @ cdecl _mbsrev(str) _mbsrev
@ cdecl _mbsset(str long) _mbsset @ cdecl _mbsset(str long) _mbsset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment