ReactOS 0.4.16-dev-2104-gb84fa49
corecrt_wstdlib.h
Go to the documentation of this file.
1
6#ifndef _WSTDLIB_DEFINED
7#define _WSTDLIB_DEFINED
8
9#include <corecrt.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15_ACRTIMP wchar_t* __cdecl _itow(int,wchar_t*,int);
16_ACRTIMP errno_t __cdecl _itow_s(int,wchar_t*,size_t, int);
17_ACRTIMP wchar_t* __cdecl _i64tow(__int64,wchar_t*,int);
18_ACRTIMP errno_t __cdecl _i64tow_s(__int64, wchar_t*, size_t, int);
19_ACRTIMP wchar_t* __cdecl _ltow(__msvcrt_long,wchar_t*,int);
20_ACRTIMP errno_t __cdecl _ltow_s(__msvcrt_long,wchar_t*,size_t,int);
21_ACRTIMP wchar_t* __cdecl _ui64tow(unsigned __int64,wchar_t*,int);
22_ACRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64, wchar_t*, size_t, int);
23_ACRTIMP wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
24_ACRTIMP errno_t __cdecl _ultow_s(__msvcrt_ulong, wchar_t*, size_t, int);
25_ACRTIMP wchar_t* __cdecl _wfullpath(wchar_t*,const wchar_t*,size_t);
26_ACRTIMP wchar_t* __cdecl _wgetenv(const wchar_t*);
27_ACRTIMP errno_t __cdecl _wgetenv_s(size_t *,wchar_t *,size_t,const wchar_t *);
28_ACRTIMP void __cdecl _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
29_ACRTIMP int __cdecl _wmakepath_s(wchar_t*,size_t,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
30_ACRTIMP void __cdecl _wperror(const wchar_t*);
31_ACRTIMP int __cdecl _wputenv(const wchar_t*);
32_ACRTIMP void __cdecl _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
33_ACRTIMP void __cdecl _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
34_ACRTIMP errno_t __cdecl _wsplitpath_s(const wchar_t*,wchar_t*,size_t,wchar_t*,size_t,
35 wchar_t*,size_t,wchar_t*,size_t);
36_ACRTIMP int __cdecl _wsystem(const wchar_t*);
37_ACRTIMP double __cdecl _wtof(const wchar_t*);
38_ACRTIMP int __cdecl _wtoi(const wchar_t*);
39_ACRTIMP __int64 __cdecl _wtoi64(const wchar_t*);
40_ACRTIMP __msvcrt_long __cdecl _wtol(const wchar_t*);
41
42_ACRTIMP size_t __cdecl mbstowcs(wchar_t*,const char*,size_t);
43_ACRTIMP size_t __cdecl _mbstowcs_l(wchar_t*,const char*,size_t,_locale_t);
44_ACRTIMP errno_t __cdecl mbstowcs_s(size_t*,wchar_t*,size_t,const char*,size_t);
45_ACRTIMP errno_t __cdecl _mbstowcs_s_l(size_t*,wchar_t*,size_t,const char*,size_t,_locale_t);
46_ACRTIMP int __cdecl mbtowc(wchar_t*,const char*,size_t);
47_ACRTIMP int __cdecl _mbtowc_l(wchar_t*,const char*,size_t,_locale_t);
48_ACRTIMP float __cdecl wcstof(const wchar_t*,wchar_t**);
49_ACRTIMP float __cdecl _wcstof_l(const wchar_t*,wchar_t**,_locale_t);
50_ACRTIMP double __cdecl wcstod(const wchar_t*,wchar_t**);
51_ACRTIMP __msvcrt_long __cdecl wcstol(const wchar_t*,wchar_t**,int);
52_ACRTIMP size_t __cdecl wcstombs(char*,const wchar_t*,size_t);
53_ACRTIMP size_t __cdecl _wcstombs_l(char*,const wchar_t*,size_t,_locale_t);
54_ACRTIMP errno_t __cdecl wcstombs_s(size_t*,char*,size_t,const wchar_t*,size_t);
55_ACRTIMP __msvcrt_ulong __cdecl wcstoul(const wchar_t*,wchar_t**,int);
56_ACRTIMP int __cdecl wctomb(char*,wchar_t);
57_ACRTIMP int __cdecl _wctomb_l(char*,wchar_t,_locale_t);
58_ACRTIMP __int64 __cdecl _wcstoi64(const wchar_t*,wchar_t**,int);
59_ACRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t*,wchar_t**,int,_locale_t);
60_ACRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t*,wchar_t**,int);
61_ACRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t*,wchar_t**,int,_locale_t);
62_ACRTIMP __int64 __cdecl wcstoll(const wchar_t*,wchar_t**,int);
63_ACRTIMP __int64 __cdecl _wcstoll_l(const wchar_t*,wchar_t**,int,_locale_t);
64_ACRTIMP unsigned __int64 __cdecl wcstoull(const wchar_t*,wchar_t**,int);
65_ACRTIMP unsigned __int64 __cdecl _wcstoull_l(const wchar_t*,wchar_t**,int,_locale_t);
66
67#ifdef _UCRT
68_ACRTIMP double __cdecl _wcstold_l(const wchar_t*,wchar_t**,_locale_t);
69static inline long double wcstold(const wchar_t *string, wchar_t **endptr) { return _wcstold_l(string, endptr, NULL); }
70#endif /* _UCRT */
71
72#ifdef __cplusplus
73extern "C++" {
74
75template <size_t size>
76inline errno_t _wgetenv_s(size_t *ret, wchar_t (&buf)[size], const wchar_t *var)
77{
78 return _wgetenv_s(ret, buf, size, var);
79}
80
81} /* extern "C++" */
82
83}
84#endif
85
86#endif /* _WSTDLIB_DEFINED */
#define NULL
Definition: types.h:112
int errno_t
Definition: corecrt.h:249
long __msvcrt_long
Definition: corecrt.h:167
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
#define __int64
Definition: corecrt.h:72
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
_ACRTIMP __msvcrt_long __cdecl _wtol(const wchar_t *)
Definition: wcs.c:2798
_ACRTIMP wchar_t *__cdecl _wfullpath(wchar_t *, const wchar_t *, size_t)
Definition: dir.c:1218
_ACRTIMP __int64 __cdecl wcstoll(const wchar_t *, wchar_t **, int)
Definition: strtox.cpp:291
_ACRTIMP float __cdecl wcstof(const wchar_t *, wchar_t **)
Definition: strtod.cpp:114
_ACRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *)
Definition: environ.c:254
_ACRTIMP wchar_t *__cdecl _ltow(__msvcrt_long, wchar_t *, int)
Definition: string.c:2143
_ACRTIMP void __cdecl _wmakepath(wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *)
Definition: dir.c:1357
_ACRTIMP __int64 __cdecl _wcstoi64(const wchar_t *, wchar_t **, int)
Definition: wcs.c:2720
_ACRTIMP void __cdecl _wsplitpath(const wchar_t *, wchar_t *, wchar_t *, wchar_t *, wchar_t *)
Definition: dir.c:1206
_ACRTIMP double __cdecl _wtof(const wchar_t *)
Definition: wcs.c:805
_ACRTIMP errno_t __cdecl _ultow_s(__msvcrt_ulong, wchar_t *, size_t, int)
Definition: string.c:2462
_ACRTIMP unsigned __int64 __cdecl wcstoull(const wchar_t *, wchar_t **, int)
Definition: strtox.cpp:352
_ACRTIMP float __cdecl _wcstof_l(const wchar_t *, wchar_t **, _locale_t)
Definition: strtod.cpp:122
_ACRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64, wchar_t *, size_t, int)
Definition: string.c:2370
_ACRTIMP __int64 __cdecl _wtoi64(const wchar_t *)
Definition: wcs.c:3040
_ACRTIMP __msvcrt_ulong __cdecl wcstoul(const wchar_t *, wchar_t **, int)
Definition: wcs.c:2912
_ACRTIMP unsigned __int64 __cdecl _wcstoull_l(const wchar_t *, wchar_t **, int, _locale_t)
Definition: strtox.cpp:382
_ACRTIMP void __cdecl _wperror(const wchar_t *)
Definition: errno.c:354
_ACRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t *, wchar_t **, int)
Definition: wcs.c:2885
_ACRTIMP void __cdecl _wsearchenv(const wchar_t *, const wchar_t *, wchar_t *)
Definition: dir.c:1796
_ACRTIMP int __cdecl _mbtowc_l(wchar_t *, const char *, size_t, _locale_t)
Definition: mbcs.c:3161
_ACRTIMP int __cdecl _wputenv(const wchar_t *)
Definition: environ.c:377
_ACRTIMP int __cdecl _wmakepath_s(wchar_t *, size_t, const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *)
Definition: dir.c:1508
_ACRTIMP __msvcrt_long __cdecl wcstol(const wchar_t *, wchar_t **, int)
Definition: wcs.c:2747
_ACRTIMP errno_t __cdecl mbstowcs_s(size_t *, wchar_t *, size_t, const char *, size_t)
Definition: mbstowcs.cpp:316
_ACRTIMP int __cdecl _wctomb_l(char *, wchar_t, _locale_t)
Definition: wcs.c:2147
_ACRTIMP errno_t __cdecl _i64tow_s(__int64, wchar_t *, size_t, int)
Definition: string.c:2591
_ACRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64, wchar_t *, int)
Definition: string.c:2223
_ACRTIMP errno_t __cdecl _itow_s(int, wchar_t *, size_t, int)
Definition: string.c:2127
_ACRTIMP wchar_t *__cdecl _ultow(__msvcrt_ulong, wchar_t *, int)
Definition: string.c:2199
_ACRTIMP double __cdecl wcstod(const wchar_t *, wchar_t **)
Definition: wcs.c:797
_ACRTIMP errno_t __cdecl _wgetenv_s(size_t *, wchar_t *, size_t, const wchar_t *)
Definition: environ.c:533
_ACRTIMP errno_t __cdecl _ltow_s(__msvcrt_long, wchar_t *, size_t, int)
Definition: string.c:2087
_ACRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t *, wchar_t **, int, _locale_t)
Definition: wcs.c:2826
_ACRTIMP wchar_t *__cdecl _itow(int, wchar_t *, int)
Definition: string.c:2135
_ACRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t *, wchar_t **, int, _locale_t)
Definition: wcs.c:2655
_ACRTIMP int __cdecl _wsystem(const wchar_t *)
Definition: process.c:1254
_ACRTIMP int __cdecl _wtoi(const wchar_t *)
Definition: wcs.c:2773
_ACRTIMP wchar_t *__cdecl _i64tow(__int64, wchar_t *, int)
Definition: string.c:2289
_ACRTIMP errno_t __cdecl wcstombs_s(size_t *, char *, size_t, const wchar_t *, size_t)
Definition: wcs.c:776
_ACRTIMP __int64 __cdecl _wcstoll_l(const wchar_t *, wchar_t **, int, _locale_t)
Definition: strtox.cpp:321
return ret
Definition: mutex.c:146
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define _wsplitpath_s(f, d, dl, p, pl, n, nl, e, el)
Definition: utility.h:211
#define wctomb
Definition: wctomb.c:31
const char * var
Definition: shader.c:5666
long double __cdecl wcstold(const wchar_t *__restrict__, wchar_t **__restrict__)
Definition: strtod.cpp:148
_wcstombs_l
Definition: stdlib.h:1039
_mbstowcs_s_l
Definition: stdlib.h:951
_mbstowcs_l
Definition: stdlib.h:951
wcstombs
Definition: stdlib.h:1013
mbstowcs
Definition: stdlib.h:925
#define mbtowc(wp, cp, len)
Definition: wchar.h:155
long double __cdecl _wcstold_l(wchar_t const *const string, wchar_t **const end_ptr, _locale_t const locale)
Definition: strtod.cpp:157