Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
01b9fd36
Commit
01b9fd36
authored
Dec 29, 2010
by
Arno Teigseth
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _ui64tow_s.
parent
74ce3e53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
4 deletions
+41
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
string.c
dlls/msvcrt/string.c
+37
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
01b9fd36
...
...
@@ -1197,7 +1197,7 @@
@ cdecl _ui64toa(int64 ptr long) msvcrt._ui64toa
@ cdecl _ui64toa_s(int64 ptr long long) msvcrt._ui64toa_s
@ cdecl _ui64tow(int64 ptr long) msvcrt._ui64tow
@
stub
_ui64tow_s
@
cdecl _ui64tow_s(int64 ptr long long) msvcrt.
_ui64tow_s
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
...
...
dlls/msvcr80/msvcr80.spec
View file @
01b9fd36
...
...
@@ -1050,7 +1050,7 @@
@ cdecl _ui64toa(int64 ptr long) msvcrt._ui64toa
@ cdecl _ui64toa_s(int64 ptr long long) msvcrt._ui64toa_s
@ cdecl _ui64tow(int64 ptr long) msvcrt._ui64tow
@
stub
_ui64tow_s
@
cdecl _ui64tow_s(int64 ptr long long) msvcrt.
_ui64tow_s
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
...
...
dlls/msvcr90/msvcr90.spec
View file @
01b9fd36
...
...
@@ -1037,7 +1037,7 @@
@ cdecl _ui64toa(int64 ptr long) msvcrt._ui64toa
@ cdecl _ui64toa_s(int64 ptr long long) msvcrt._ui64toa_s
@ cdecl _ui64tow(int64 ptr long) msvcrt._ui64tow
@
stub
_ui64tow_s
@
cdecl _ui64tow_s(int64 ptr long long) msvcrt.
_ui64tow_s
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
...
...
dlls/msvcrt/msvcrt.spec
View file @
01b9fd36
...
...
@@ -976,7 +976,7 @@
@ cdecl _ui64toa(int64 ptr long) ntdll._ui64toa
@ cdecl _ui64toa_s(int64 ptr long long) MSVCRT__ui64toa_s
@ cdecl _ui64tow(int64 ptr long) ntdll._ui64tow
# stub
_ui64tow_s
@ cdecl _ui64tow_s(int64 ptr long long) MSVCRT_
_ui64tow_s
@ cdecl _ultoa(long ptr long) ntdll._ultoa
@ cdecl _ultoa_s(long ptr long long)
@ cdecl _ultow(long ptr long) ntdll._ultow
...
...
dlls/msvcrt/string.c
View file @
01b9fd36
...
...
@@ -919,6 +919,43 @@ int CDECL MSVCRT__ui64toa_s(unsigned __int64 value, char *str,
}
/*********************************************************************
* _ui64tow_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__ui64tow_s
(
unsigned
__int64
value
,
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
size
,
int
radix
)
{
MSVCRT_wchar_t
buffer
[
65
],
*
pos
;
int
digit
;
if
(
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
size
>
0
)
||
!
MSVCRT_CHECK_PMT
(
radix
>=
2
)
||
!
MSVCRT_CHECK_PMT
(
radix
<=
36
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
pos
=
&
buffer
[
64
];
*
pos
=
'\0'
;
do
{
digit
=
value
%
radix
;
value
=
value
/
radix
;
if
(
digit
<
10
)
*--
pos
=
'0'
+
digit
;
else
*--
pos
=
'a'
+
digit
-
10
;
}
while
(
value
!=
0
);
if
(
buffer
-
pos
+
65
>
size
)
{
MSVCRT_INVALID_PMT
(
"str[size] is too small"
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
memcpy
(
str
,
pos
,
buffer
-
pos
+
65
);
return
0
;
}
/*********************************************************************
* _ultoa_s (MSVCRT.@)
*/
int
CDECL
_ultoa_s
(
MSVCRT_ulong
value
,
char
*
str
,
MSVCRT_size_t
size
,
int
radix
)
...
...
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