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
3db957e3
Commit
3db957e3
authored
May 12, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _strupr_s_l implementation.
parent
504231ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
4 deletions
+66
-4
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+4
-4
string.c
dlls/msvcrt/string.c
+62
-0
No files found.
dlls/msvcrt/msvcrt.spec
View file @
3db957e3
...
@@ -954,10 +954,10 @@
...
@@ -954,10 +954,10 @@
@ cdecl -ret64 _strtoui64(str ptr long) MSVCRT_strtoui64
@ cdecl -ret64 _strtoui64(str ptr long) MSVCRT_strtoui64
@ cdecl -ret64 _strtoui64_l(str ptr long ptr) MSVCRT_strtoui64_l
@ cdecl -ret64 _strtoui64_l(str ptr long ptr) MSVCRT_strtoui64_l
# stub _strtoul_l(str ptr long ptr)
# stub _strtoul_l(str ptr long ptr)
@ cdecl _strupr(str)
ntdll._strupr
@ cdecl _strupr(str)
# stub
_strupr_l(str ptr)
@ cdecl
_strupr_l(str ptr)
# stub
_strupr_s(str long)
@ cdecl
_strupr_s(str long)
# stub
_strupr_s_l(str long ptr)
@ cdecl
_strupr_s_l(str long ptr)
# stub _strxfrm_l(ptr str long ptr)
# stub _strxfrm_l(ptr str long ptr)
@ cdecl _swab(str str long) MSVCRT__swab
@ cdecl _swab(str str long) MSVCRT__swab
@ varargs _swprintf(ptr wstr) MSVCRT_swprintf
@ varargs _swprintf(ptr wstr) MSVCRT_swprintf
...
...
dlls/msvcrt/string.c
View file @
3db957e3
...
@@ -113,6 +113,68 @@ int CDECL _strlwr(char *str)
...
@@ -113,6 +113,68 @@ int CDECL _strlwr(char *str)
}
}
/*********************************************************************
/*********************************************************************
* _strupr_s_l (MSVCRT.@)
*/
int
CDECL
_strupr_s_l
(
char
*
str
,
MSVCRT_size_t
len
,
MSVCRT__locale_t
locale
)
{
char
*
ptr
=
str
;
if
(
!
locale
)
locale
=
get_locale
();
if
(
!
str
||
!
len
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
while
(
len
&&
*
ptr
)
{
len
--
;
ptr
++
;
}
if
(
!
len
)
{
str
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
while
(
*
str
)
{
*
str
=
MSVCRT__toupper_l
(
*
str
,
locale
);
str
++
;
}
return
0
;
}
/*********************************************************************
* _strupr_s (MSVCRT.@)
*/
int
CDECL
_strupr_s
(
char
*
str
,
MSVCRT_size_t
len
)
{
return
_strupr_s_l
(
str
,
len
,
NULL
);
}
/*********************************************************************
* _strupr_l (MSVCRT.@)
*/
int
CDECL
_strupr_l
(
char
*
str
,
MSVCRT__locale_t
locale
)
{
return
_strupr_s_l
(
str
,
-
1
,
locale
);
}
/*********************************************************************
* _strupr (MSVCRT.@)
*/
int
CDECL
_strupr
(
char
*
str
)
{
return
_strupr_s_l
(
str
,
-
1
,
NULL
);
}
/*********************************************************************
* _strnset (MSVCRT.@)
* _strnset (MSVCRT.@)
*/
*/
char
*
CDECL
MSVCRT__strnset
(
char
*
str
,
int
value
,
MSVCRT_size_t
len
)
char
*
CDECL
MSVCRT__strnset
(
char
*
str
,
int
value
,
MSVCRT_size_t
len
)
...
...
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