Piotr Caban : msvcrt: Added _sscanf_l implementation.

Alexandre Julliard julliard at winehq.org
Thu Apr 22 11:24:03 CDT 2010


Module: wine
Branch: master
Commit: edfe9bdbaebfa1e6268c0729770f704eb1070a17
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=edfe9bdbaebfa1e6268c0729770f704eb1070a17

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Apr 22 13:50:20 2010 +0200

msvcrt: Added _sscanf_l implementation.

---

 dlls/msvcr80/msvcr80.spec |    2 +-
 dlls/msvcr90/msvcr90.spec |    2 +-
 dlls/msvcrt/msvcrt.spec   |    2 +-
 dlls/msvcrt/scanf.c       |   14 ++++++++++++++
 4 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec
index 90a374b..b20223a 100644
--- a/dlls/msvcr80/msvcr80.spec
+++ b/dlls/msvcr80/msvcr80.spec
@@ -921,7 +921,7 @@
 @ stub _sprintf_p
 @ stub _sprintf_p_l
 @ stub _sprintf_s_l
-@ stub _sscanf_l
+@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
 @ stub _sscanf_s_l
 @ stub _stat32
 @ stub _stat32i64
diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec
index 89d3824..9da64e7 100644
--- a/dlls/msvcr90/msvcr90.spec
+++ b/dlls/msvcr90/msvcr90.spec
@@ -907,7 +907,7 @@
 @ stub _sprintf_p
 @ stub _sprintf_p_l
 @ stub _sprintf_s_l
-@ stub _sscanf_l
+@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
 @ stub _sscanf_s_l
 @ stub _stat32
 @ stub _stat32i64
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 3332469..6eb3114 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -856,7 +856,7 @@
 # stub _sprintf_l
 # stub _sprintf_p_l
 # stub _sprintf_s_l
-# stub _sscanf_l
+@ varargs _sscanf_l(str str ptr) MSVCRT__sscanf_l
 # stub _sscanf_s_l
 @ cdecl _stat(str ptr) MSVCRT_stat
 @ cdecl _stat64(str ptr) MSVCRT_stat64
diff --git a/dlls/msvcrt/scanf.c b/dlls/msvcrt/scanf.c
index 504a92d..079f450 100644
--- a/dlls/msvcrt/scanf.c
+++ b/dlls/msvcrt/scanf.c
@@ -217,6 +217,20 @@ int CDECL MSVCRT_sscanf(const char *str, const char *format, ...)
     return res;
 }
 
+/*********************************************************************
+ *		_sscanf_l (MSVCRT.@)
+ */
+int CDECL MSVCRT__sscanf_l(const char *str, const char *format,
+        MSVCRT__locale_t locale, ...)
+{
+    __ms_va_list valist;
+    int res;
+
+    __ms_va_start(valist, locale);
+    res = MSVCRT_vsscanf_l(str, format, locale, valist);
+    __ms_va_end(valist);
+    return res;
+}
 
 /*********************************************************************
  *		swscanf (MSVCRT.@)




More information about the wine-cvs mailing list