Commit 46ae113e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msvcrt: Added partially complete _wcsupr_s_l (without locale support).

parent 27e18b3b
......@@ -1318,7 +1318,7 @@
@ cdecl _wcsupr(wstr) msvcrt._wcsupr
@ stub _wcsupr_l
@ cdecl _wcsupr_s(wstr long) msvcrt._wcsupr_s
@ stub _wcsupr_s_l
@ cdecl _wcsupr_s_l(wstr long ptr) msvcrt._wcsupr_s_l
@ stub _wcsxfrm_l
@ cdecl _wctime32(ptr) msvcrt._wctime32
@ stub _wctime32_s
......
......@@ -1171,7 +1171,7 @@
@ cdecl _wcsupr(wstr) msvcrt._wcsupr
@ stub _wcsupr_l
@ cdecl _wcsupr_s(wstr long) msvcrt._wcsupr_s
@ stub _wcsupr_s_l
@ cdecl _wcsupr_s_l(wstr long ptr) msvcrt._wcsupr_s_l
@ stub _wcsxfrm_l
@ cdecl _wctime32(ptr) msvcrt._wctime32
@ stub _wctime32_s
......
......@@ -1158,7 +1158,7 @@
@ cdecl _wcsupr(wstr) msvcrt._wcsupr
@ stub _wcsupr_l
@ cdecl _wcsupr_s(wstr long) msvcrt._wcsupr_s
@ stub _wcsupr_s_l
@ cdecl _wcsupr_s_l(wstr long ptr) msvcrt._wcsupr_s_l
@ stub _wcsxfrm_l
@ cdecl _wctime32(ptr) msvcrt._wctime32
@ stub _wctime32_s
......
......@@ -103,10 +103,10 @@ MSVCRT_wchar_t* CDECL _wcsset( MSVCRT_wchar_t* str, MSVCRT_wchar_t c )
}
/******************************************************************
* _wcsupr_s (MSVCRT.@)
*
* _wcsupr_s_l (MSVCRT.@)
*/
INT CDECL MSVCRT__wcsupr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
int CDECL MSVCRT__wcsupr_s_l( MSVCRT_wchar_t* str, MSVCRT_size_t n,
MSVCRT__locale_t locale )
{
MSVCRT_wchar_t* ptr = str;
......@@ -120,6 +120,7 @@ INT CDECL MSVCRT__wcsupr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
while (n--)
{
if (!*ptr) return 0;
/* FIXME: add locale support */
*ptr = toupperW(*ptr);
ptr++;
}
......@@ -132,6 +133,15 @@ INT CDECL MSVCRT__wcsupr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
}
/******************************************************************
* _wcsupr_s (MSVCRT.@)
*
*/
INT CDECL MSVCRT__wcsupr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
{
return MSVCRT__wcsupr_s_l( str, n, NULL );
}
/******************************************************************
* _wcslwr_s (MSVCRT.@)
*/
int CDECL MSVCRT__wcslwr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
......
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