Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8386e95a
Commit
8386e95a
authored
Apr 22, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _sscanf_s(_l) implementation.
parent
98e34c7f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
6 deletions
+39
-6
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
scanf.c
dlls/msvcrt/scanf.c
+33
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
8386e95a
...
...
@@ -922,7 +922,7 @@
@ stub _sprintf_p_l
@ stub _sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@
stub
_sscanf_s_l
@
varargs _sscanf_s_l(str str ptr) msvcrt.
_sscanf_s_l
@ stub _stat32
@ stub _stat32i64
@ cdecl _stat64(str ptr) msvcrt._stat64
...
...
@@ -1371,7 +1371,7 @@
@ cdecl sqrt(double) msvcrt.sqrt
@ cdecl srand(long) msvcrt.srand
@ varargs sscanf(str str) msvcrt.sscanf
@
stub
sscanf_s
@
varargs sscanf_s(str str) msvcrt.
sscanf_s
@ cdecl strcat(str str) msvcrt.strcat
@ cdecl strcat_s(str long str) msvcrt.strcat_s
@ cdecl strchr(str long) msvcrt.strchr
...
...
dlls/msvcr90/msvcr90.spec
View file @
8386e95a
...
...
@@ -908,7 +908,7 @@
@ stub _sprintf_p_l
@ stub _sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@
stub
_sscanf_s_l
@
varargs _sscanf_s_l(str str ptr) msvcrt.
_sscanf_s_l
@ stub _stat32
@ stub _stat32i64
@ cdecl _stat64(str ptr) msvcrt._stat64
...
...
@@ -1355,7 +1355,7 @@
@ cdecl sqrt(double) msvcrt.sqrt
@ cdecl srand(long) msvcrt.srand
@ varargs sscanf(str str) msvcrt.sscanf
@
stub
sscanf_s
@
varargs sscanf_s(str str) msvcrt.
sscanf_s
@ cdecl strcat(str str) msvcrt.strcat
@ cdecl strcat_s(str long str) msvcrt.strcat_s
@ cdecl strchr(str long) msvcrt.strchr
...
...
dlls/msvcrt/msvcrt.spec
View file @
8386e95a
...
...
@@ -858,7 +858,7 @@
# stub _sprintf_p_l
# stub _sprintf_s_l
@ varargs _sscanf_l(str str ptr) MSVCRT__sscanf_l
# stub
_sscanf_s_l
@ varargs _sscanf_s_l(str str ptr) MSVCRT_
_sscanf_s_l
@ cdecl _stat(str ptr) MSVCRT_stat
@ cdecl _stat64(str ptr) MSVCRT_stat64
@ cdecl _stati64(str ptr) MSVCRT_stati64
...
...
@@ -1306,7 +1306,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf
# stub
sscanf_s
@ varargs sscanf_s(str str) MSVCRT_
sscanf_s
@ cdecl strcat(str str) ntdll.strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) ntdll.strchr
...
...
dlls/msvcrt/scanf.c
View file @
8386e95a
...
...
@@ -87,6 +87,10 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#undef SECURE
#include "scanf.h"
/* vsscanf_s_l */
#define SECURE 1
#include "scanf.h"
/* vswscanf_l */
#define WIDE_SCANF 1
#undef CONSOLE
...
...
@@ -362,6 +366,35 @@ int CDECL MSVCRT__sscanf_l(const char *str, const char *format,
}
/*********************************************************************
* sscanf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_sscanf_s
(
const
char
*
str
,
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vsscanf_s_l
(
str
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _sscanf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__sscanf_s_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_s_l
(
str
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* swscanf (MSVCRT.@)
*/
int
CDECL
MSVCRT_swscanf
(
const
MSVCRT_wchar_t
*
str
,
const
MSVCRT_wchar_t
*
format
,
...)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment