Commit d32bc75a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Added _strncoll_l implementation.

parent ff7cf637
...@@ -934,8 +934,8 @@ ...@@ -934,8 +934,8 @@
@ cdecl _strlwr_l(str ptr) @ cdecl _strlwr_l(str ptr)
@ cdecl _strlwr_s(ptr long) @ cdecl _strlwr_s(ptr long)
@ cdecl _strlwr_s_l(ptr long ptr) @ cdecl _strlwr_s_l(ptr long ptr)
@ stub _strncoll(str str long) @ cdecl _strncoll(str str long) MSVCRT_strncoll_l
# stub _strncoll_l(str str long ptr) @ cdecl _strncoll_l(str str long ptr) MSVCRT_strncoll
@ cdecl _strnicmp(str str long) ntdll._strnicmp @ cdecl _strnicmp(str str long) ntdll._strnicmp
# stub _strnicmp_l(str str long ptr) # stub _strnicmp_l(str str long ptr)
@ stub _strnicoll(str str long) @ stub _strnicoll(str str long)
......
...@@ -567,6 +567,25 @@ int CDECL MSVCRT__stricoll( const char* str1, const char* str2 ) ...@@ -567,6 +567,25 @@ int CDECL MSVCRT__stricoll( const char* str1, const char* str2 )
} }
/********************************************************************* /*********************************************************************
* _strncoll_l (MSVCRT.@)
*/
int CDECL MSVCRT_strncoll_l( const char* str1, const char* str2, MSVCRT_size_t count, MSVCRT__locale_t locale )
{
if(!locale)
locale = get_locale();
return CompareStringA(locale->locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, count, str2, count)-2;
}
/*********************************************************************
* strncoll (MSVCRT.@)
*/
int CDECL MSVCRT_strncoll( const char* str1, const char* str2, MSVCRT_size_t count )
{
return MSVCRT_strncoll_l(str1, str2, count, NULL);
}
/*********************************************************************
* strcpy_s (MSVCRT.@) * strcpy_s (MSVCRT.@)
*/ */
int CDECL MSVCRT_strcpy_s( char* dst, MSVCRT_size_t elem, const char* src ) int CDECL MSVCRT_strcpy_s( char* dst, MSVCRT_size_t elem, const char* src )
......
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