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
d051a95b
Commit
d051a95b
authored
Sep 23, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Sep 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A first stab at wcstod().
parent
fc049ecd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
wcs.c
dlls/msvcrt/wcs.c
+46
-0
No files found.
dlls/msvcrt/msvcrt.spec
View file @
d051a95b
...
...
@@ -753,7 +753,7 @@
@ cdecl wcsrchr(wstr long) ntdll.wcsrchr
@ cdecl wcsspn(wstr wstr) ntdll.wcsspn
@ cdecl wcsstr(wstr wstr) ntdll.wcsstr
@
stub wcstod #(wstr ptr)
@
cdecl wcstod(wstr ptr) MSVCRT_wcstod
@ cdecl wcstok(wstr wstr) ntdll.wcstok
@ cdecl wcstol(wstr ptr long) ntdll.wcstol
@ cdecl wcstombs(ptr ptr long) ntdll.wcstombs
...
...
dlls/msvcrt/wcs.c
View file @
d051a95b
...
...
@@ -112,6 +112,52 @@ MSVCRT_wchar_t* _wcsset( MSVCRT_wchar_t* str, MSVCRT_wchar_t c )
}
/*********************************************************************
* wcstod (MSVCRT.@)
*/
double
MSVCRT_wcstod
(
const
MSVCRT_wchar_t
*
lpszStr
,
MSVCRT_wchar_t
**
end
)
{
const
MSVCRT_wchar_t
*
str
=
lpszStr
;
int
negative
=
0
;
double
ret
=
0
,
divisor
=
10
.
0
;
TRACE
(
"(%s,%p) semi-stub
\n
"
,
debugstr_w
(
lpszStr
),
end
);
/* FIXME:
* - Should set errno on failure
* - Should fail on overflow
* - Need to check which input formats are allowed
*/
while
(
isspaceW
(
*
str
))
str
++
;
if
(
*
str
==
'-'
)
{
negative
=
1
;
str
++
;
}
while
(
isdigitW
(
*
str
))
{
ret
=
ret
*
10
.
0
+
(
*
str
-
'0'
);
str
++
;
}
if
(
*
str
==
'.'
)
str
++
;
while
(
isdigitW
(
*
str
))
{
ret
=
ret
+
(
*
str
-
'0'
)
/
divisor
;
divisor
*=
10
;
str
++
;
}
if
(
end
)
*
end
=
(
MSVCRT_wchar_t
*
)
str
;
TRACE
(
"returning %g
\n
"
,
ret
);
return
ret
;
}
/*********************************************************************
* _vsnwprintf (MSVCRT.@)
*/
int
_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
unsigned
int
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