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
2c07fad6
Commit
2c07fad6
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 _scanf_s(_l) implementation.
parent
b38fcabf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
6 deletions
+34
-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
+28
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
2c07fad6
...
...
@@ -852,7 +852,7 @@
@ cdecl -arch=i386 _safe_fprem1() msvcrt._safe_fprem1
@ cdecl _scalb( double long) msvcrt._scalb
@ varargs _scanf_l(str ptr) msvcrt._scanf_l
@
stub
_scanf_s_l
@
varargs _scanf_s_l(str ptr) msvcrt.
_scanf_s_l
@ stub _scprintf
@ stub _scprintf_l
@ stub _scprintf_p
...
...
@@ -1359,7 +1359,7 @@
@ cdecl rename(str str) msvcrt.rename
@ cdecl rewind(ptr) msvcrt.rewind
@ varargs scanf(str) msvcrt.scanf
@
stub
scanf_s
@
varargs scanf_s(str) msvcrt.
scanf_s
@ cdecl setbuf(ptr ptr) msvcrt.setbuf
@ cdecl setlocale(long str) msvcrt.setlocale
@ cdecl setvbuf(ptr str long long) msvcrt.setvbuf
...
...
dlls/msvcr90/msvcr90.spec
View file @
2c07fad6
...
...
@@ -838,7 +838,7 @@
@ cdecl -arch=i386 _safe_fprem1() msvcrt._safe_fprem1
@ cdecl _scalb( double long) msvcrt._scalb
@ varargs _scanf_l(str ptr) msvcrt._scanf_l
@
stub
_scanf_s_l
@
varargs _scanf_s_l(str ptr) msvcrt.
_scanf_s_l
@ stub _scprintf
@ stub _scprintf_l
@ stub _scprintf_p
...
...
@@ -1343,7 +1343,7 @@
@ cdecl rename(str str) msvcrt.rename
@ cdecl rewind(ptr) msvcrt.rewind
@ varargs scanf(str) msvcrt.scanf
@
stub
scanf_s
@
varargs scanf_s(str) msvcrt.
scanf_s
@ cdecl setbuf(ptr ptr) msvcrt.setbuf
@ cdecl setlocale(long str) msvcrt.setlocale
@ cdecl setvbuf(ptr str long long) msvcrt.setvbuf
...
...
dlls/msvcrt/msvcrt.spec
View file @
2c07fad6
...
...
@@ -795,7 +795,7 @@
@ cdecl -arch=i386 _safe_fprem1()
@ cdecl _scalb(double long) MSVCRT__scalb
@ varargs _scanf_l(str ptr) MSVCRT__scanf_l
# stub
_scanf_s_l
@ varargs _scanf_s_l(str ptr) MSVCRT_
_scanf_s_l
# stub _scprintf
# stub _scprintf_l
# stub _scprintf_p_l
...
...
@@ -1293,7 +1293,7 @@
@ cdecl rename(str str) MSVCRT_rename
@ cdecl rewind(ptr) MSVCRT_rewind
@ varargs scanf(str) MSVCRT_scanf
# stub
scanf_s
@ varargs scanf_s(str) MSVCRT_
scanf_s
@ cdecl setbuf(ptr ptr) MSVCRT_setbuf
@ cdecl -arch=x86_64 -norelay -private setjmp(ptr) MSVCRT__setjmp
@ cdecl setlocale(long str) MSVCRT_setlocale
...
...
dlls/msvcrt/scanf.c
View file @
2c07fad6
...
...
@@ -184,6 +184,34 @@ int CDECL MSVCRT__scanf_l(const char *format, MSVCRT__locale_t locale, ...)
}
/*********************************************************************
* scanf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_scanf_s
(
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vfscanf_s_l
(
MSVCRT_stdin
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _scanf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__scanf_s_l
(
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vfscanf_s_l
(
MSVCRT_stdin
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* fwscanf (MSVCRT.@)
*/
int
CDECL
MSVCRT_fwscanf
(
MSVCRT_FILE
*
file
,
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