Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
7463af6b
Commit
7463af6b
authored
22 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Added sprintfW and vsprintfW.
parent
19e050eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/wine/unicode.h
+4
-2
4 additions, 2 deletions
include/wine/unicode.h
unicode/string.c
+16
-2
16 additions, 2 deletions
unicode/string.c
unicode/wine_unicode.def
+2
-0
2 additions, 0 deletions
unicode/wine_unicode.def
with
22 additions
and
4 deletions
include/wine/unicode.h
+
4
−
2
View file @
7463af6b
...
...
@@ -76,8 +76,10 @@ extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
extern
WCHAR
*
strstrW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
);
extern
long
int
strtolW
(
const
WCHAR
*
nptr
,
WCHAR
**
endptr
,
int
base
);
extern
unsigned
long
int
strtoulW
(
const
WCHAR
*
nptr
,
WCHAR
**
endptr
,
int
base
);
extern
int
snprintfW
(
WCHAR
*
str
,
unsigned
int
len
,
const
WCHAR
*
format
,
...
);
extern
int
vsnprintfW
(
WCHAR
*
str
,
unsigned
int
len
,
const
WCHAR
*
format
,
va_list
valist
);
extern
int
sprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
...
);
extern
int
snprintfW
(
WCHAR
*
str
,
size_t
len
,
const
WCHAR
*
format
,
...
);
extern
int
vsprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
va_list
valist
);
extern
int
vsnprintfW
(
WCHAR
*
str
,
size_t
len
,
const
WCHAR
*
format
,
va_list
valist
);
static
inline
int
is_dbcs_leadbyte
(
const
union
cptable
*
table
,
unsigned
char
ch
)
{
...
...
This diff is collapsed.
Click to expand it.
unicode/string.c
+
16
−
2
View file @
7463af6b
...
...
@@ -289,7 +289,7 @@ noconv:
}
int
vsnprintfW
(
WCHAR
*
str
,
unsigned
in
t
len
,
const
WCHAR
*
format
,
va_list
valist
)
int
vsnprintfW
(
WCHAR
*
str
,
size_
t
len
,
const
WCHAR
*
format
,
va_list
valist
)
{
unsigned
int
written
=
0
;
const
WCHAR
*
iter
=
format
;
...
...
@@ -407,8 +407,12 @@ int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist
return
(
int
)
written
;
}
int
vsprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
va_list
valist
)
{
return
vsnprintfW
(
str
,
INT_MAX
,
format
,
valist
);
}
int
snprintfW
(
WCHAR
*
str
,
unsigned
in
t
len
,
const
WCHAR
*
format
,
...)
int
snprintfW
(
WCHAR
*
str
,
size_
t
len
,
const
WCHAR
*
format
,
...)
{
int
retval
;
va_list
valist
;
...
...
@@ -417,3 +421,13 @@ int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
va_end
(
valist
);
return
retval
;
}
int
sprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
...)
{
int
retval
;
va_list
valist
;
va_start
(
valist
,
format
);
retval
=
vsnprintfW
(
str
,
INT_MAX
,
format
,
valist
);
va_end
(
valist
);
return
retval
;
}
This diff is collapsed.
Click to expand it.
unicode/wine_unicode.def
+
2
−
0
View file @
7463af6b
...
...
@@ -6,6 +6,7 @@ EXPORTS
cp_mbstowcs
cp_wcstombs
snprintfW
sprintfW
strcmpiW
strncmpiW
strstrW
...
...
@@ -14,4 +15,5 @@ EXPORTS
utf8_mbstowcs
utf8_wcstombs
vsnprintfW
vsprintfW
wctype_table
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment