msvcrt: Added _cscanf_l implementation.

This commit is contained in:
Piotr Caban 2010-04-22 13:51:15 +02:00 committed by Alexandre Julliard
parent 2242f281ba
commit 8a69a936dc
4 changed files with 17 additions and 3 deletions

View File

@ -341,7 +341,7 @@
@ cdecl _create_locale(long str) msvcrt._create_locale
@ stub _crt_debugger_hook
@ varargs _cscanf(str) msvcrt._cscanf
@ stub _cscanf_l
@ varargs _cscanf_l(str ptr) msvcrt._cscanf_l
@ stub _cscanf_s
@ stub _cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32

View File

@ -333,7 +333,7 @@
@ cdecl _create_locale(long str) msvcrt._create_locale
@ stub _crt_debugger_hook
@ varargs _cscanf(str) msvcrt._cscanf
@ stub _cscanf_l
@ varargs _cscanf_l(str ptr) msvcrt._cscanf_l
@ stub _cscanf_s
@ stub _cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32

View File

@ -314,7 +314,7 @@
# stub _crtBreakAlloc
# stub _crtDbgFlag
@ varargs _cscanf(str)
# stub _cscanf_l
@ varargs _cscanf_l(str ptr)
# stub _cscanf_s
# stub _cscanf_s_l
@ cdecl _ctime32(ptr) MSVCRT__ctime32

View File

@ -274,3 +274,17 @@ int CDECL _cscanf(const char *format, ...)
__ms_va_end(valist);
return res;
}
/*********************************************************************
* _cscanf_l (MSVCRT.@)
*/
int CDECL _cscanf_l(const char *format, MSVCRT__locale_t locale, ...)
{
__ms_va_list valist;
int res;
__ms_va_start(valist, locale);
res = MSVCRT_vcscanf_l(format, locale, valist);
__ms_va_end(valist);
return res;
}