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
177d5455
Commit
177d5455
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 _cscanf_s(_l) implementation.
parent
a51292e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
6 deletions
+38
-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
+32
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
177d5455
...
...
@@ -342,8 +342,8 @@
@ stub _crt_debugger_hook
@ varargs _cscanf(str) msvcrt._cscanf
@ varargs _cscanf_l(str ptr) msvcrt._cscanf_l
@
stub
_cscanf_s
@
stub
_cscanf_s_l
@
varargs _cscanf_s(str) msvcrt.
_cscanf_s
@
varargs _cscanf_s_l(str ptr) msvcrt.
_cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32
@ stub _ctime32_s
@ cdecl _ctime64(ptr) msvcrt._ctime64
...
...
dlls/msvcr90/msvcr90.spec
View file @
177d5455
...
...
@@ -334,8 +334,8 @@
@ stub _crt_debugger_hook
@ varargs _cscanf(str) msvcrt._cscanf
@ varargs _cscanf_l(str ptr) msvcrt._cscanf_l
@
stub
_cscanf_s
@
stub
_cscanf_s_l
@
varargs _cscanf_s(str) msvcrt.
_cscanf_s
@
varargs _cscanf_s_l(str ptr) msvcrt.
_cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32
@ stub _ctime32_s
@ cdecl _ctime64(ptr) msvcrt._ctime64
...
...
dlls/msvcrt/msvcrt.spec
View file @
177d5455
...
...
@@ -315,8 +315,8 @@
# stub _crtDbgFlag
@ varargs _cscanf(str)
@ varargs _cscanf_l(str ptr)
# stub _cscanf_s
# stub _cscanf_s_l
@ varargs _cscanf_s(str)
@ varargs _cscanf_s_l(str ptr)
@ cdecl _ctime32(ptr) MSVCRT__ctime32
# stub _ctime32_s
@ cdecl _ctime64(ptr) MSVCRT__ctime64
...
...
dlls/msvcrt/scanf.c
View file @
177d5455
...
...
@@ -109,6 +109,10 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#undef SECURE
#include "scanf.h"
/* vcscanf_s_l */
#define SECURE 1
#include "scanf.h"
/*********************************************************************
* fscanf (MSVCRT.@)
...
...
@@ -483,3 +487,31 @@ int CDECL _cscanf_l(const char *format, MSVCRT__locale_t locale, ...)
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cscanf_s (MSVCRT.@)
*/
int
CDECL
_cscanf_s
(
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vcscanf_s_l
(
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cscanf_s_l (MSVCRT.@)
*/
int
CDECL
_cscanf_s_l
(
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vcscanf_s_l
(
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
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