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
8a598319
Commit
8a598319
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 fscanf and fscanf_s declarations.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6805ae0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
stdio.h
include/msvcrt/stdio.h
+27
-2
No files found.
include/msvcrt/stdio.h
View file @
8a598319
...
...
@@ -118,8 +118,6 @@ int __cdecl fputs(const char*,FILE*);
size_t
__cdecl
fread
(
void
*
,
size_t
,
size_t
,
FILE
*
);
size_t
__cdecl
fread_s
(
void
*
,
size_t
,
size_t
,
size_t
,
FILE
*
);
FILE
*
__cdecl
freopen
(
const
char
*
,
const
char
*
,
FILE
*
);
int
WINAPIV
fscanf
(
FILE
*
,
const
char
*
,...);
int
WINAPIV
fscanf_s
(
FILE
*
,
const
char
*
,...);
int
__cdecl
fseek
(
FILE
*
,
__msvcrt_long
,
int
);
int
__cdecl
_fseeki64
(
FILE
*
,
__int64
,
int
);
int
__cdecl
fsetpos
(
FILE
*
,
fpos_t
*
);
...
...
@@ -158,6 +156,8 @@ _ACRTIMP int __cdecl __stdio_common_vsprintf_p(unsigned __int64,char*,size_t,con
_ACRTIMP
int
__cdecl
__stdio_common_vsprintf_s
(
unsigned
__int64
,
char
*
,
size_t
,
const
char
*
,
_locale_t
,
__ms_va_list
);
_ACRTIMP
int
__cdecl
__stdio_common_vsnprintf_s
(
unsigned
__int64
,
char
*
,
size_t
,
size_t
,
const
char
*
,
_locale_t
,
__ms_va_list
);
_ACRTIMP
int
__cdecl
__stdio_common_vfscanf
(
unsigned
__int64
,
FILE
*
,
const
char
*
,
_locale_t
,
__ms_va_list
);
static
inline
int
__cdecl
vsnprintf
(
char
*
buffer
,
size_t
size
,
const
char
*
format
,
__ms_va_list
args
)
{
int
ret
=
__stdio_common_vsprintf
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
|
_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
,
...
...
@@ -302,6 +302,28 @@ static inline int WINAPIV printf_s(const char *format, ...)
return
ret
;
}
static
inline
int
WINAPIV
fscanf
(
FILE
*
file
,
const
char
*
format
,
...)
{
int
ret
;
__ms_va_list
args
;
__ms_va_start
(
args
,
format
);
ret
=
__stdio_common_vfscanf
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS
,
file
,
format
,
NULL
,
args
);
__ms_va_end
(
args
);
return
ret
;
}
static
inline
int
WINAPIV
fscanf_s
(
FILE
*
file
,
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
,
file
,
format
,
NULL
,
args
);
__ms_va_end
(
args
);
return
ret
;
}
#else
/* _UCRT */
_ACRTIMP
int
WINAPIV
_scprintf
(
const
char
*
,...);
...
...
@@ -324,6 +346,9 @@ _ACRTIMP int __cdecl vsprintf_s(char*,size_t,const char*,__ms_va_list);
int
__cdecl
_vsnprintf
(
char
*
,
size_t
,
const
char
*
,
__ms_va_list
);
static
inline
int
vsnprintf
(
char
*
buffer
,
size_t
size
,
const
char
*
format
,
__ms_va_list
args
)
{
return
_vsnprintf
(
buffer
,
size
,
format
,
args
);
}
_ACRTIMP
int
WINAPIV
fscanf
(
FILE
*
,
const
char
*
,...);
_ACRTIMP
int
WINAPIV
fscanf_s
(
FILE
*
,
const
char
*
,...);
#endif
/* _UCRT */
#endif
/* _STDIO_DEFINED */
...
...
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