Commit 65f7d5ec authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Add _mbsspnp_l implementation.

parent c9467132
...@@ -1186,7 +1186,7 @@ ...@@ -1186,7 +1186,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -1543,7 +1543,7 @@ ...@@ -1543,7 +1543,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -1554,7 +1554,7 @@ ...@@ -1554,7 +1554,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -858,7 +858,7 @@ ...@@ -858,7 +858,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -836,7 +836,7 @@ ...@@ -836,7 +836,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -2829,12 +2829,23 @@ size_t CDECL _mbsspn(const unsigned char* string, const unsigned char* set) ...@@ -2829,12 +2829,23 @@ size_t CDECL _mbsspn(const unsigned char* string, const unsigned char* set)
} }
/********************************************************************* /*********************************************************************
* _mbsspnp_l (MSVCRT.@)
*/
unsigned char* CDECL _mbsspnp_l(const unsigned char* string, const unsigned char* set, _locale_t locale)
{
if (!MSVCRT_CHECK_PMT(string && set))
return 0;
string += _mbsspn_l(string, set, locale);
return *string ? (unsigned char*)string : NULL;
}
/*********************************************************************
* _mbsspnp (MSVCRT.@) * _mbsspnp (MSVCRT.@)
*/ */
unsigned char* CDECL _mbsspnp(const unsigned char* string, const unsigned char* set) unsigned char* CDECL _mbsspnp(const unsigned char* string, const unsigned char* set)
{ {
string += _mbsspn( string, set ); return _mbsspnp_l(string, set, NULL);
return *string ? (unsigned char*)string : NULL;
} }
/********************************************************************* /*********************************************************************
......
...@@ -807,7 +807,7 @@ ...@@ -807,7 +807,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
# stub _mbsspnp_l(str str ptr) @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
# stub _mbsstr_l(str str ptr) # stub _mbsstr_l(str str ptr)
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
......
...@@ -702,7 +702,7 @@ ...@@ -702,7 +702,7 @@
@ cdecl _mbsspn(str str) @ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr) @ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str) @ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l @ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str) @ cdecl _mbsstr(str str)
@ stub _mbsstr_l @ stub _mbsstr_l
@ cdecl _mbstok(str str) @ cdecl _mbstok(str str)
...@@ -1271,7 +1271,7 @@ ...@@ -1271,7 +1271,7 @@
@ cdecl _o__mbsspn(str str) _mbsspn @ cdecl _o__mbsspn(str str) _mbsspn
@ cdecl _o__mbsspn_l(str str ptr) _mbsspn_l @ cdecl _o__mbsspn_l(str str ptr) _mbsspn_l
@ cdecl _o__mbsspnp(str str) _mbsspnp @ cdecl _o__mbsspnp(str str) _mbsspnp
@ stub _o__mbsspnp_l @ cdecl _o__mbsspnp_l(str str ptr) _mbsspnp_l
@ cdecl _o__mbsstr(str str) _mbsstr @ cdecl _o__mbsstr(str str) _mbsstr
@ stub _o__mbsstr_l @ stub _o__mbsstr_l
@ cdecl _o__mbstok(str str) _mbstok @ cdecl _o__mbstok(str str) _mbstok
......
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