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
5b432751
Commit
5b432751
authored
Mar 04, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle the printf %F format modifier.
parent
50f59f8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
printf.c
dlls/msvcrt/tests/printf.c
+15
-0
wcs.c
dlls/msvcrt/wcs.c
+2
-0
No files found.
dlls/msvcrt/tests/printf.c
View file @
5b432751
...
...
@@ -71,6 +71,11 @@ static void test_sprintf( void )
ok
(
!
strcmp
(
buffer
,
" 0X00000039"
),
"Pointer formatted incorrectly
\n
"
);
ok
(
r
==
12
,
"return count wrong
\n
"
);
format
=
"%Fp"
;
r
=
sprintf
(
buffer
,
format
,(
void
*
)
57
);
ok
(
!
strcmp
(
buffer
,
"00000039"
),
"Pointer formatted incorrectly
\"
%s
\"\n
"
,
buffer
);
ok
(
r
==
8
,
"return count wrong
\n
"
);
format
=
"%04s"
;
r
=
sprintf
(
buffer
,
format
,
"foo"
);
ok
(
!
strcmp
(
buffer
,
"0foo"
),
"String not zero-prefixed
\"
%s
\"\n
"
,
buffer
);
...
...
@@ -240,6 +245,16 @@ static void test_sprintf( void )
ok
(
!
strcmp
(
buffer
,
"j"
),
"failed
\n
"
);
ok
(
r
==
1
,
"return count wrong
\n
"
);
format
=
"%F"
;
r
=
sprintf
(
buffer
,
format
,
-
1
);
ok
(
!
strcmp
(
buffer
,
""
),
"failed
\n
"
);
ok
(
r
==
0
,
"return count wrong
\n
"
);
format
=
"%H"
;
r
=
sprintf
(
buffer
,
format
,
-
1
);
ok
(
!
strcmp
(
buffer
,
"H"
),
"failed
\n
"
);
ok
(
r
==
1
,
"return count wrong
\n
"
);
format
=
"x%cx"
;
r
=
sprintf
(
buffer
,
format
,
0x100
+
'X'
);
ok
(
!
strcmp
(
buffer
,
"xXx"
),
"failed
\n
"
);
...
...
dlls/msvcrt/wcs.c
View file @
5b432751
...
...
@@ -491,6 +491,8 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
}
else
if
(
*
p
==
'w'
)
flags
.
WideString
=
*
p
++
;
else
if
(
*
p
==
'F'
)
p
++
;
/* ignore */
else
break
;
}
...
...
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