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
54dfe595
Commit
54dfe595
authored
Apr 16, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented _wtoi and _wtol.
parent
169e36b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
wcstring.c
dlls/ntdll/wcstring.c
+18
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
54dfe595
...
...
@@ -903,6 +903,8 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl _wcslwr(wstr) NTDLL__wcslwr
@ cdecl _wcsnicmp(wstr wstr long) NTDLL__wcsnicmp
@ cdecl _wcsupr(wstr) NTDLL__wcsupr
@ cdecl _wtoi(wstr) _wtoi
@ cdecl _wtol(wstr) _wtol
@ cdecl -noimport abs(long) abs
@ cdecl -noimport atan(double) atan
@ cdecl -noimport atoi(str) atoi
...
...
@@ -1004,8 +1006,6 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ stub RtlGuidToPropertySetName
@ stub RtlClosePropertySet
@ stub RtlCreatePropertySet
@ stub _wtoi
@ stub _wtol
@ stub RtlSetPropertySetClassId
@ stdcall NtPowerInformation(long long long long long) NtPowerInformation
...
...
dlls/ntdll/wcstring.c
View file @
54dfe595
...
...
@@ -338,6 +338,24 @@ LPWSTR __cdecl _ultow(ULONG value, LPWSTR string, INT radix)
return
string
;
}
/*********************************************************************
* _wtol (NTDLL)
* Like atol, but for wide character strings.
*/
LONG
__cdecl
_wtol
(
LPWSTR
string
)
{
char
buffer
[
30
];
NTDLL_wcstombs
(
buffer
,
string
,
sizeof
(
buffer
)
);
return
atol
(
buffer
);
}
/*********************************************************************
* _wtoi (NTDLL)
*/
INT
__cdecl
_wtoi
(
LPWSTR
string
)
{
return
_wtol
(
string
);
}
/* INTERNAL: Wide char snprintf
* If you fix a bug in this function, fix it in msvcrt/wcs.c also!
...
...
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