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
bfa70fe6
Commit
bfa70fe6
authored
Oct 22, 2001
by
David Elliott
Committed by
Alexandre Julliard
Oct 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the wcstoul function.
parent
e15badb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-1
wcstring.c
dlls/ntdll/wcstring.c
+15
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
bfa70fe6
...
...
@@ -950,6 +950,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl -noimport strspn(str str) strspn
@ cdecl -noimport strstr(str str) strstr
@ cdecl -noimport strtol(str ptr long) strtol
@ cdecl -noimport strtoul(str ptr long) strtoul
@ varargs swprintf(wstr wstr) NTDLL_swprintf
@ cdecl -noimport tan(double) tan
@ cdecl tolower(long) tolower
...
...
@@ -973,7 +974,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl wcstok(wstr wstr) NTDLL_wcstok
@ cdecl wcstol(wstr ptr long) NTDLL_wcstol
@ cdecl wcstombs(ptr ptr long) NTDLL_wcstombs
@
stub
wcstoul
@
cdecl wcstoul(wstr ptr long) NTDLL_
wcstoul
@ stub NtAddAtom
@ stub NtDeleteAtom
@ stub NtFindAtom
...
...
dlls/ntdll/wcstring.c
View file @
bfa70fe6
...
...
@@ -289,6 +289,21 @@ INT __cdecl NTDLL_wcstol(LPCWSTR s,LPWSTR *end,INT base)
/*********************************************************************
* wcstoul (NTDLL.@)
* Like strtoul, but for wide character strings.
*/
INT
__cdecl
NTDLL_wcstoul
(
LPCWSTR
s
,
LPWSTR
*
end
,
INT
base
)
{
LPSTR
sA
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
s
),
endA
;
INT
ret
=
strtoul
(
sA
,
&
endA
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
sA
);
if
(
end
)
*
end
=
((
LPWSTR
)
s
)
+
(
endA
-
sA
);
/* pointer magic checked. */
return
ret
;
}
/*********************************************************************
* iswctype (NTDLL.@)
*/
INT
__cdecl
NTDLL_iswctype
(
WCHAR
wc
,
WCHAR
wct
)
...
...
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