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
a3717a2e
Commit
a3717a2e
authored
Jan 11, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed EOF return value for sscanf.
parent
5778165d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scanf.h
dlls/msvcrt/scanf.h
+4
-2
No files found.
dlls/msvcrt/scanf.h
View file @
a3717a2e
...
...
@@ -26,6 +26,7 @@
#ifdef WIDE_SCANF
#define _CHAR_ MSVCRT_wchar_t
#define _EOF_ MSVCRT_WEOF
#define _EOF_RET MSVCRT_WEOF
#define _ISSPACE_(c) MSVCRT_iswspace(c)
#define _ISDIGIT_(c) MSVCRT_iswdigit(c)
#define _CONVERT_(c) c
/*** FIXME ***/
...
...
@@ -33,6 +34,7 @@
#else
/* WIDE_SCANF */
#define _CHAR_ char
#define _EOF_ MSVCRT_EOF
#define _EOF_RET MSVCRT_EOF
#define _ISSPACE_(c) isspace(c)
#define _ISDIGIT_(c) isdigit(c)
#define _CONVERT_(c) c
/*** FIXME ***/
...
...
@@ -90,8 +92,8 @@ int _FUNCTION_ {
#endif
/* CONSOLE */
#endif
/* WIDE_SCANF */
nch
=
_GETC_
(
file
);
if
(
nch
==
_EOF_
)
return
_EOF_
;
if
(
nch
==
_EOF_
)
return
_EOF_
RET
;
va_start
(
ap
,
format
);
while
(
*
format
)
{
/* a whitespace character in the format string causes scanf to read,
...
...
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