#include <precomp.h>
#include <internal/wine/msvcrt.h>
Go to the source code of this file.
|
| __int64 CDECL | _wtoi64_l (const wchar_t *str, _locale_t locale) |
| |
| __int64 CDECL | _wtoi64 (const wchar_t *str) |
| |
| __int64 CDECL | _wcstoi64_l (const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale) |
| |
| __int64 CDECL | _wcstoi64 (const wchar_t *nptr, wchar_t **endptr, int base) |
| |
| unsigned __int64 CDECL | _wcstoui64_l (const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale) |
| |
| unsigned __int64 CDECL | _wcstoui64 (const wchar_t *nptr, wchar_t **endptr, int base) |
| |
◆ _wcstoi64()
Definition at line 121 of file wtoi64.c.
123{
125}
__int64 CDECL _wcstoi64_l(const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale)
Referenced by DumpDisk(), and DumpPartition().
◆ _wcstoi64_l()
Definition at line 45 of file wtoi64.c.
47{
50
51#ifndef _LIBCNT_
53#endif
54
58
60
61 if(*nptr == '-') {
63 nptr++;
64 } else if(*nptr == '+')
65 nptr++;
66
69 nptr += 2;
70 }
71
73 if(*nptr=='0')
75 else
77 }
78
79 while(*nptr) {
82
85 break;
87 } else {
89 break;
91 }
92
93 if(negative)
95
96 nptr++;
97
100#ifndef _LIBCNT_
102#endif
105#ifndef _LIBCNT_
107#endif
108 } else
110 }
111
112 if(endptr)
113 *endptr = (wchar_t*)nptr;
114
116}
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
#define MSVCRT_CHECK_PMT(x)
_CRTIMP int *__cdecl _errno(void)
Referenced by _wcstoi64().
◆ _wcstoui64()
Definition at line 200 of file wtoi64.c.
202{
204}
unsigned __int64 CDECL _wcstoui64_l(const wchar_t *nptr, wchar_t **endptr, int base, _locale_t locale)
Referenced by CreateEfiPartition(), CreateExtendedPartition(), CreateLogicalPartition(), CreateMsrPartition(), CreatePartitionPage(), CreatePrimaryPartition(), gpt_main(), and wWinMain().
◆ _wcstoui64_l()
Definition at line 132 of file wtoi64.c.
134{
137
138#ifndef _LIBCNT_
140#endif
141
145
147
148 if(*nptr == '-') {
150 nptr++;
151 } else if(*nptr == '+')
152 nptr++;
153
156 nptr += 2;
157 }
158
160 if(*nptr=='0')
162 else
164 }
165
166 while(*nptr) {
169
170 if(
cur>=
'0' &&
cur<=
'9') {
172 break;
174 } else {
176 break;
178 }
179
180 nptr++;
181
184#ifndef _LIBCNT_
186#endif
187 } else
189 }
190
191 if(endptr)
192 *endptr = (wchar_t*)nptr;
193
195}
Referenced by _wcstoui64().
◆ _wtoi64()
◆ _wtoi64_l()
Definition at line 7 of file wtoi64.c.
8{
11
14 }
15
18 }
else if (*
str ==
'-') {
21 }
22
23 while (*
str >=
'0' && *
str <=
'9') {
24 RunningTotal = RunningTotal * 10 + *
str -
'0';
26 }
27
28 return bMinus ? -RunningTotal : RunningTotal;
29}
Referenced by _wtoi64().