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
65351034
Commit
65351034
authored
Jan 11, 2003
by
Mehmet Yasar
Committed by
Alexandre Julliard
Jan 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- return EOF when stream is empty
- conformance test updated
parent
73802eb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
scanf.h
dlls/msvcrt/scanf.h
+2
-0
scanf.c
dlls/msvcrt/tests/scanf.c
+8
-2
No files found.
dlls/msvcrt/scanf.h
View file @
65351034
...
...
@@ -90,6 +90,8 @@ int _FUNCTION_ {
#endif
/* CONSOLE */
#endif
/* WIDE_SCANF */
nch
=
_GETC_
(
file
);
if
(
nch
==
_EOF_
)
return
_EOF_
;
va_start
(
ap
,
format
);
while
(
*
format
)
{
/* a whitespace character in the format string causes scanf to read,
...
...
dlls/msvcrt/tests/scanf.c
View file @
65351034
...
...
@@ -26,8 +26,14 @@ static void test_sscanf( void )
{
char
buffer
[
100
];
char
format
[
20
];
int
result
;
int
result
,
ret
;
/* check EOF */
strcpy
(
buffer
,
""
);
ret
=
sscanf
(
buffer
,
"%d"
,
&
result
);
ok
(
ret
==
EOF
,
"sscanf returns %x instead of %x"
,
ret
,
EOF
);
/* check %x */
strcpy
(
buffer
,
"0x519"
);
ok
(
sscanf
(
buffer
,
"%x"
,
&
result
)
==
1
,
"sscanf failed"
);
ok
(
result
==
0x519
,
"sscanf reads %x instead of %x"
,
result
,
0x519
);
...
...
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