Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1e1b5d58
Commit
1e1b5d58
authored
Feb 21, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stdio.h: Add ucrt scanf and scanf_s declarations.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a598319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
stdio.h
include/msvcrt/stdio.h
+24
-2
No files found.
include/msvcrt/stdio.h
View file @
1e1b5d58
...
...
@@ -134,8 +134,6 @@ int __cdecl puts(const char*);
int
__cdecl
remove
(
const
char
*
);
int
__cdecl
rename
(
const
char
*
,
const
char
*
);
void
__cdecl
rewind
(
FILE
*
);
int
WINAPIV
scanf
(
const
char
*
,...);
int
WINAPIV
scanf_s
(
const
char
*
,...);
void
__cdecl
setbuf
(
FILE
*
,
char
*
);
int
__cdecl
setvbuf
(
FILE
*
,
char
*
,
int
,
size_t
);
int
WINAPIV
sscanf
(
const
char
*
,
const
char
*
,...);
...
...
@@ -324,6 +322,28 @@ static inline int WINAPIV fscanf_s(FILE *file, const char *format, ...)
return
ret
;
}
static
inline
int
WINAPIV
scanf
(
const
char
*
format
,
...)
{
int
ret
;
__ms_va_list
args
;
__ms_va_start
(
args
,
format
);
ret
=
__stdio_common_vfscanf
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS
,
stdin
,
format
,
NULL
,
args
);
__ms_va_end
(
args
);
return
ret
;
}
static
inline
int
WINAPIV
scanf_s
(
const
char
*
format
,
...)
{
int
ret
;
__ms_va_list
args
;
__ms_va_start
(
args
,
format
);
ret
=
__stdio_common_vfscanf
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS
|
_CRT_INTERNAL_SCANF_SECURECRT
,
stdin
,
format
,
NULL
,
args
);
__ms_va_end
(
args
);
return
ret
;
}
#else
/* _UCRT */
_ACRTIMP
int
WINAPIV
_scprintf
(
const
char
*
,...);
...
...
@@ -348,6 +368,8 @@ static inline int vsnprintf(char *buffer, size_t size, const char *format, __ms_
_ACRTIMP
int
WINAPIV
fscanf
(
FILE
*
,
const
char
*
,...);
_ACRTIMP
int
WINAPIV
fscanf_s
(
FILE
*
,
const
char
*
,...);
_ACRTIMP
int
WINAPIV
scanf
(
const
char
*
,...);
_ACRTIMP
int
WINAPIV
scanf_s
(
const
char
*
,...);
#endif
/* _UCRT */
...
...
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