mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msvcrt: Added swprintf_s implementation.
This commit is contained in:
parent
2ff04b9d57
commit
c483bebe2b
@ -1400,7 +1400,7 @@
|
||||
@ cdecl strtol(str ptr long) msvcrt.strtol
|
||||
@ cdecl strtoul(str ptr long) msvcrt.strtoul
|
||||
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
|
||||
@ stub swprintf_s
|
||||
@ varargs swprintf_s(ptr long wstr) msvcrt.swprintf_s
|
||||
@ varargs swscanf(wstr wstr) msvcrt.swscanf
|
||||
@ stub swscanf_s
|
||||
@ cdecl system(str) msvcrt.system
|
||||
|
@ -1384,7 +1384,7 @@
|
||||
@ cdecl strtol(str ptr long) msvcrt.strtol
|
||||
@ cdecl strtoul(str ptr long) msvcrt.strtoul
|
||||
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
|
||||
@ stub swprintf_s
|
||||
@ varargs swprintf_s(ptr long wstr) msvcrt.swprintf_s
|
||||
@ varargs swscanf(wstr wstr) msvcrt.swscanf
|
||||
@ stub swscanf_s
|
||||
@ cdecl system(str) msvcrt.system
|
||||
|
@ -1341,7 +1341,7 @@
|
||||
@ cdecl strtoul(str ptr long) MSVCRT_strtoul
|
||||
@ cdecl strxfrm(ptr str long) MSVCRT_strxfrm
|
||||
@ varargs swprintf(ptr wstr) MSVCRT_swprintf
|
||||
# stub swprintf_s
|
||||
@ varargs swprintf_s(ptr long wstr) MSVCRT_swprintf_s
|
||||
@ varargs swscanf(wstr wstr) MSVCRT_swscanf
|
||||
# stub swscanf_s
|
||||
@ cdecl system(str) MSVCRT_system
|
||||
|
@ -1064,6 +1064,23 @@ int CDECL MSVCRT_swprintf( MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format, ..
|
||||
return r;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* swprintf_s (MSVCRT.@)
|
||||
*/
|
||||
int CDECL MSVCRT_swprintf_s(MSVCRT_wchar_t *str, MSVCRT_size_t numberOfElements,
|
||||
const MSVCRT_wchar_t *format, ... )
|
||||
{
|
||||
__ms_va_list ap;
|
||||
int r;
|
||||
|
||||
__ms_va_start(ap, format);
|
||||
r = MSVCRT_vsnwprintf_s(str, numberOfElements*sizeof(MSVCRT_wchar_t),
|
||||
INT_MAX, format, ap);
|
||||
__ms_va_end(ap);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* vswprintf (MSVCRT.@)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user