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
df038ec5
Commit
df038ec5
authored
May 05, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
May 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _ui64toa_s implementation.
parent
100e925c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
3 deletions
+41
-3
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
+38
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
df038ec5
...
...
@@ -994,7 +994,7 @@
@ extern _tzname msvcrt._tzname
@ cdecl _tzset() msvcrt._tzset
@ cdecl _ui64toa(long long ptr long) msvcrt._ui64toa
@
stub
_ui64toa_s
@
cdecl _ui64toa_s(long ptr long long) msvcrt.
_ui64toa_s
@ cdecl _ui64tow(long long ptr long) msvcrt._ui64tow
@ stub _ui64tow_s
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
...
...
dlls/msvcr90/msvcr90.spec
View file @
df038ec5
...
...
@@ -981,7 +981,7 @@
@ extern _tzname msvcrt._tzname
@ cdecl _tzset() msvcrt._tzset
@ cdecl _ui64toa(long long ptr long) msvcrt._ui64toa
@
stub
_ui64toa_s
@
cdecl _ui64toa_s(long ptr long long) msvcrt.
_ui64toa_s
@ cdecl _ui64tow(long long ptr long) msvcrt._ui64tow
@ stub _ui64tow_s
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
...
...
dlls/msvcrt/msvcrt.spec
View file @
df038ec5
...
...
@@ -932,7 +932,7 @@
@ extern _tzname MSVCRT__tzname
@ cdecl _tzset() MSVCRT__tzset
@ cdecl _ui64toa(long long ptr long) ntdll._ui64toa
# stub
_ui64toa_s
@ cdecl _ui64toa_s(long ptr long long) MSVCRT_
_ui64toa_s
@ cdecl _ui64tow(long long ptr long) ntdll._ui64tow
# stub _ui64tow_s
@ cdecl _ultoa(long ptr long) ntdll._ultoa
...
...
dlls/msvcrt/string.c
View file @
df038ec5
...
...
@@ -624,3 +624,41 @@ unsigned __int64 CDECL MSVCRT_strtoui64(const char *nptr, char **endptr, int bas
{
return
MSVCRT_strtoui64_l
(
nptr
,
endptr
,
base
,
NULL
);
}
/*********************************************************************
* _ui64toa_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__ui64toa_s
(
unsigned
__int64
value
,
char
*
str
,
MSVCRT_size_t
size
,
int
radix
)
{
char
buffer
[
65
],
*
pos
;
int
digit
;
if
(
!
str
||
radix
<
2
||
radix
>
36
)
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
pos
=
buffer
+
64
;
*
pos
=
'\0'
;
do
{
digit
=
value
%
radix
;
value
/=
radix
;
if
(
digit
<
10
)
*--
pos
=
'0'
+
digit
;
else
*--
pos
=
'a'
+
digit
-
10
;
}
while
(
value
!=
0
);
if
(
buffer
-
pos
+
65
>
size
)
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
memcpy
(
str
,
pos
,
buffer
-
pos
+
65
);
return
0
;
}
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