2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
11 #define __need___va_list
14 #pragma pack(push,_CRT_PACKING)
22 #pragma warning(disable:4820)
29 #define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */
33 #define WEOF (wint_t)(0xFFFF)
47 typedef struct _iobuf
FILE;
51 #ifndef _STDIO_DEFINED
52 _CRTIMP
FILE *__cdecl
__iob_func(void);
53 _CRTDATA(extern FILE _iob
[];)
55 #define _iob __iob_func()
59 #ifndef _STDSTREAM_DEFINED
60 #define _STDSTREAM_DEFINED
61 #define stdin (&_iob[0])
62 #define stdout (&_iob[1])
63 #define stderr (&_iob[1])
64 #endif /* !_STDSTREAM_DEFINED */
66 #ifndef _FSIZE_T_DEFINED
67 typedef unsigned long _fsize_t
;
68 #define _FSIZE_T_DEFINED
71 #ifndef _WFINDDATA_T_DEFINED
81 struct _wfinddata32_t
{
83 __time32_t time_create
;
84 __time32_t time_access
;
85 __time32_t time_write
;
90 #if _INTEGRAL_MAX_BITS >= 64
91 struct _wfinddatai64_t
{
100 struct _wfinddata32i64_t
{
102 __time32_t time_create
;
103 __time32_t time_access
;
104 __time32_t time_write
;
109 struct _wfinddata64i32_t
{
111 __time64_t time_create
;
112 __time64_t time_access
;
113 __time64_t time_write
;
118 struct _wfinddata64_t
{
120 __time64_t time_create
;
121 __time64_t time_access
;
122 __time64_t time_write
;
128 #define _WFINDDATA_T_DEFINED
129 #endif /* !_WFINDDATA_T_DEFINED */
135 #define NULL ((void *)0)
139 #ifndef _CRT_CTYPEDATA_DEFINED
140 # define _CRT_CTYPEDATA_DEFINED
141 # ifndef _CTYPE_DISABLE_MACROS
142 # ifndef __PCTYPE_FUNC
144 # define __PCTYPE_FUNC __pctype_func()
146 # define __PCTYPE_FUNC _pctype
148 # endif /* !__PCTYPE_FUNC */
149 _CRTIMP
const unsigned short * __cdecl
__pctype_func(void);
151 _CRTDATA(extern unsigned short *_pctype
);
153 # define _pctype (__pctype_func())
154 # endif /* !_M_CEE_PURE */
155 # endif /* !_CTYPE_DISABLE_MACROS */
156 #endif /* !_CRT_CTYPEDATA_DEFINED */
158 #ifndef _CRT_WCTYPEDATA_DEFINED
159 #define _CRT_WCTYPEDATA_DEFINED
160 # ifndef _CTYPE_DISABLE_MACROS
161 _CRTDATA(extern unsigned short *_wctype
);
162 _CRTIMP
const wctype_t * __cdecl
__pwctype_func(void);
164 _CRTDATA(extern const wctype_t *_pwctype
);
166 # define _pwctype (__pwctype_func())
167 # endif /* !_M_CEE_PURE */
168 # endif /* !_CTYPE_DISABLE_MACROS */
169 #endif /* !_CRT_WCTYPEDATA_DEFINED */
177 #define _CONTROL 0x20
181 #define _LEADBYTE 0x8000
182 #define _ALPHA (0x0100|_UPPER|_LOWER)
184 #ifndef _WCTYPE_DEFINED
185 #define _WCTYPE_DEFINED
186 _CRTIMP
int __cdecl
iswalpha(wint_t _C
);
187 _CRTIMP
int __cdecl
_iswalpha_l(wint_t _C
,_locale_t _Locale
);
188 _CRTIMP
int __cdecl
iswupper(wint_t _C
);
189 _CRTIMP
int __cdecl
_iswupper_l(wint_t _C
,_locale_t _Locale
);
190 _CRTIMP
int __cdecl
iswlower(wint_t _C
);
191 _CRTIMP
int __cdecl
_iswlower_l(wint_t _C
,_locale_t _Locale
);
192 _CRTIMP
int __cdecl
iswdigit(wint_t _C
);
193 _CRTIMP
int __cdecl
_iswdigit_l(wint_t _C
,_locale_t _Locale
);
194 _CRTIMP
int __cdecl
iswxdigit(wint_t _C
);
195 _CRTIMP
int __cdecl
_iswxdigit_l(wint_t _C
,_locale_t _Locale
);
196 _CRTIMP
int __cdecl
iswspace(wint_t _C
);
197 _CRTIMP
int __cdecl
_iswspace_l(wint_t _C
,_locale_t _Locale
);
198 _CRTIMP
int __cdecl
iswpunct(wint_t _C
);
199 _CRTIMP
int __cdecl
_iswpunct_l(wint_t _C
,_locale_t _Locale
);
200 _CRTIMP
int __cdecl
iswalnum(wint_t _C
);
201 _CRTIMP
int __cdecl
_iswalnum_l(wint_t _C
,_locale_t _Locale
);
202 _CRTIMP
int __cdecl
iswprint(wint_t _C
);
203 _CRTIMP
int __cdecl
_iswprint_l(wint_t _C
,_locale_t _Locale
);
204 _CRTIMP
int __cdecl
iswgraph(wint_t _C
);
205 _CRTIMP
int __cdecl
_iswgraph_l(wint_t _C
,_locale_t _Locale
);
206 _CRTIMP
int __cdecl
iswcntrl(wint_t _C
);
207 _CRTIMP
int __cdecl
_iswcntrl_l(wint_t _C
,_locale_t _Locale
);
208 _CRTIMP
int __cdecl
iswascii(wint_t _C
);
209 _CRTIMP
int __cdecl
isleadbyte(int _C
);
210 _CRTIMP
int __cdecl
_isleadbyte_l(int _C
,_locale_t _Locale
);
211 _CRTIMP
wint_t __cdecl
towupper(wint_t _C
);
212 _CRTIMP
wint_t __cdecl
_towupper_l(wint_t _C
,_locale_t _Locale
);
213 _CRTIMP
wint_t __cdecl
towlower(wint_t _C
);
214 _CRTIMP
wint_t __cdecl
_towlower_l(wint_t _C
,_locale_t _Locale
);
215 _CRTIMP
int __cdecl
iswctype(wint_t _C
,wctype_t _Type
);
216 _CRTIMP
int __cdecl
_iswctype_l(wint_t _C
,wctype_t _Type
,_locale_t _Locale
);
217 _CRTIMP
int __cdecl
__iswcsymf(wint_t _C
);
218 _CRTIMP
int __cdecl
_iswcsymf_l(wint_t _C
,_locale_t _Locale
);
219 _CRTIMP
int __cdecl
__iswcsym(wint_t _C
);
220 _CRTIMP
int __cdecl
_iswcsym_l(wint_t _C
,_locale_t _Locale
);
221 _CRTIMP
int __cdecl
is_wctype(wint_t _C
,wctype_t _Type
);
222 #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
223 _CRTIMP
int __cdecl
iswblank(wint_t _C
);
227 #ifndef _WDIRECT_DEFINED
228 #define _WDIRECT_DEFINED
229 _CRTIMP
wchar_t *__cdecl
_wgetcwd(wchar_t *_DstBuf
,int _SizeInWords
);
230 _CRTIMP
wchar_t *__cdecl
_wgetdcwd(int _Drive
,wchar_t *_DstBuf
,int _SizeInWords
);
231 wchar_t *__cdecl
_wgetdcwd_nolock(int _Drive
,wchar_t *_DstBuf
,int _SizeInWords
);
232 _CRTIMP
int __cdecl
_wchdir(const wchar_t *_Path
);
233 _CRTIMP
int __cdecl
_wmkdir(const wchar_t *_Path
);
234 _CRTIMP
int __cdecl
_wrmdir(const wchar_t *_Path
);
239 _CRTIMP
int __cdecl
_waccess(const wchar_t *_Filename
,int _AccessMode
);
240 _CRTIMP
int __cdecl
_wchmod(const wchar_t *_Filename
,int _Mode
);
241 _CRTIMP
int __cdecl
_wcreat(const wchar_t *_Filename
,int _PermissionMode
);
242 _CRTIMP
intptr_t __cdecl
_wfindfirst32(const wchar_t *_Filename
,struct _wfinddata32_t
*_FindData
);
243 _CRTIMP
int __cdecl
_wfindnext32(intptr_t _FindHandle
,struct _wfinddata32_t
*_FindData
);
244 _CRTIMP
int __cdecl
_wunlink(const wchar_t *_Filename
);
245 _CRTIMP
int __cdecl
_wrename(const wchar_t *_NewFilename
,const wchar_t *_OldFilename
);
246 _CRTIMP
wchar_t *__cdecl
_wmktemp(wchar_t *_TemplateName
);
247 #if _INTEGRAL_MAX_BITS >= 64
248 _CRTIMP
intptr_t __cdecl
_wfindfirst32i64(const wchar_t *_Filename
,struct _wfinddata32i64_t
*_FindData
);
249 _CRTIMP
intptr_t __cdecl
_wfindfirst64i32(const wchar_t *_Filename
,struct _wfinddata64i32_t
*_FindData
);
250 _CRTIMP
intptr_t __cdecl
_wfindfirst64(const wchar_t *_Filename
,struct _wfinddata64_t
*_FindData
);
251 _CRTIMP
int __cdecl
_wfindnext32i64(intptr_t _FindHandle
,struct _wfinddata32i64_t
*_FindData
);
252 _CRTIMP
int __cdecl
_wfindnext64i32(intptr_t _FindHandle
,struct _wfinddata64i32_t
*_FindData
);
253 _CRTIMP
int __cdecl
_wfindnext64(intptr_t _FindHandle
,struct _wfinddata64_t
*_FindData
);
255 _CRTIMP errno_t __cdecl
_wsopen_s(int *_FileHandle
,const wchar_t *_Filename
,int _OpenFlag
,int _ShareFlag
,int _PermissionFlag
);
256 #if !defined(__cplusplus) || !(defined(_X86_) && !defined(__x86_64))
257 _CRTIMP
int __cdecl
_wopen(const wchar_t *_Filename
,int _OpenFlag
,...);
258 _CRTIMP
int __cdecl
_wsopen(const wchar_t *_Filename
,int _OpenFlag
,int _ShareFlag
,...);
260 extern "C++" _CRTIMP
int __cdecl
_wopen(const wchar_t *_Filename
,int _OpenFlag
,int _PermissionMode
= 0);
261 extern "C++" _CRTIMP
int __cdecl
_wsopen(const wchar_t *_Filename
,int _OpenFlag
,int _ShareFlag
,int _PermissionMode
= 0);
263 #endif /* !_WIO_DEFINED */
265 #ifndef _WLOCALE_DEFINED
266 #define _WLOCALE_DEFINED
267 _CRTIMP
wchar_t *__cdecl
_wsetlocale(int _Category
,const wchar_t *_Locale
);
270 #ifndef _WPROCESS_DEFINED
271 #define _WPROCESS_DEFINED
272 _CRTIMP
intptr_t __cdecl
_wexecl(const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
273 _CRTIMP
intptr_t __cdecl
_wexecle(const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
274 _CRTIMP
intptr_t __cdecl
_wexeclp(const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
275 _CRTIMP
intptr_t __cdecl
_wexeclpe(const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
276 _CRTIMP
intptr_t __cdecl
_wexecv(const wchar_t *_Filename
,const wchar_t *const *_ArgList
);
277 _CRTIMP
intptr_t __cdecl
_wexecve(const wchar_t *_Filename
,const wchar_t *const *_ArgList
,const wchar_t *const *_Env
);
278 _CRTIMP
intptr_t __cdecl
_wexecvp(const wchar_t *_Filename
,const wchar_t *const *_ArgList
);
279 _CRTIMP
intptr_t __cdecl
_wexecvpe(const wchar_t *_Filename
,const wchar_t *const *_ArgList
,const wchar_t *const *_Env
);
280 _CRTIMP
intptr_t __cdecl
_wspawnl(int _Mode
,const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
281 _CRTIMP
intptr_t __cdecl
_wspawnle(int _Mode
,const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
282 _CRTIMP
intptr_t __cdecl
_wspawnlp(int _Mode
,const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
283 _CRTIMP
intptr_t __cdecl
_wspawnlpe(int _Mode
,const wchar_t *_Filename
,const wchar_t *_ArgList
,...);
284 _CRTIMP
intptr_t __cdecl
_wspawnv(int _Mode
,const wchar_t *_Filename
,const wchar_t *const *_ArgList
);
285 _CRTIMP
intptr_t __cdecl
_wspawnve(int _Mode
,const wchar_t *_Filename
,const wchar_t *const *_ArgList
,const wchar_t *const *_Env
);
286 _CRTIMP
intptr_t __cdecl
_wspawnvp(int _Mode
,const wchar_t *_Filename
,const wchar_t *const *_ArgList
);
287 _CRTIMP
intptr_t __cdecl
_wspawnvpe(int _Mode
,const wchar_t *_Filename
,const wchar_t *const *_ArgList
,const wchar_t *const *_Env
);
288 #ifndef _CRT_WSYSTEM_DEFINED
289 #define _CRT_WSYSTEM_DEFINED
290 _CRTIMP
int __cdecl
_wsystem(const wchar_t *_Command
);
291 #endif /* !_CRT_WSYSTEM_DEFINED */
292 #endif /* !_WPROCESS_DEFINED */
294 #ifndef _WCTYPE_INLINE_DEFINED
295 #undef _CRT_WCTYPE_NOINLINE
296 #if !defined(__cplusplus) || defined(_CRT_WCTYPE_NOINLINE)
297 #define iswalpha(_c) (iswctype(_c,_ALPHA))
298 #define iswupper(_c) (iswctype(_c,_UPPER))
299 #define iswlower(_c) (iswctype(_c,_LOWER))
300 #define iswdigit(_c) (iswctype(_c,_DIGIT))
301 #define iswxdigit(_c) (iswctype(_c,_HEX))
302 #define iswspace(_c) (iswctype(_c,_SPACE))
303 #define iswpunct(_c) (iswctype(_c,_PUNCT))
304 #define iswalnum(_c) (iswctype(_c,_ALPHA|_DIGIT))
305 #define iswprint(_c) (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT))
306 #define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
307 #define iswcntrl(_c) (iswctype(_c,_CONTROL))
308 #define iswascii(_c) ((unsigned)(_c) < 0x80)
310 #define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p))
311 #define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p))
312 #define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p))
313 #define _iswdigit_l(_c,_p) (_iswctype_l(_c,_DIGIT,_p))
314 #define _iswxdigit_l(_c,_p) (_iswctype_l(_c,_HEX,_p))
315 #define _iswspace_l(_c,_p) (_iswctype_l(_c,_SPACE,_p))
316 #define _iswpunct_l(_c,_p) (_iswctype_l(_c,_PUNCT,_p))
317 #define _iswalnum_l(_c,_p) (_iswctype_l(_c,_ALPHA|_DIGIT,_p))
318 #define _iswprint_l(_c,_p) (_iswctype_l(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT,_p))
319 #define _iswgraph_l(_c,_p) (_iswctype_l(_c,_PUNCT|_ALPHA|_DIGIT,_p))
320 #define _iswcntrl_l(_c,_p) (_iswctype_l(_c,_CONTROL,_p))
321 #ifndef _CTYPE_DISABLE_MACROS
322 #define isleadbyte(_c) (__PCTYPE_FUNC[(unsigned char)(_c)] & _LEADBYTE)
325 #define _WCTYPE_INLINE_DEFINED
328 #if !defined(_POSIX_) || defined(__GNUC__)
329 #ifndef _INO_T_DEFINED
330 #define _INO_T_DEFINED
331 typedef unsigned short _ino_t
;
333 typedef unsigned short ino_t
;
337 #ifndef _DEV_T_DEFINED
338 #define _DEV_T_DEFINED
339 typedef unsigned int _dev_t
;
341 typedef unsigned int dev_t
;
345 #ifndef _OFF_T_DEFINED
346 #define _OFF_T_DEFINED
353 #ifndef _OFF64_T_DEFINED
354 #define _OFF64_T_DEFINED
355 typedef long long _off64_t
;
357 typedef long long off64_t
;
361 #ifndef _STAT_DEFINED
362 #define _STAT_DEFINED
367 unsigned short st_mode
;
381 unsigned short st_mode
;
396 unsigned short st_mode
;
408 #if _INTEGRAL_MAX_BITS >= 64
413 unsigned short st_mode
;
427 unsigned short st_mode
;
441 unsigned short st_mode
;
453 #define __stat64 _stat64
457 #ifndef _WSTAT_DEFINED
458 #define _WSTAT_DEFINED
459 _CRTIMP
int __cdecl
_wstat(const wchar_t *_Name
,struct _stat
*_Stat
);
460 _CRTIMP
int __cdecl
_wstat32(const wchar_t *_Name
,struct _stat32
*_Stat
);
461 #if _INTEGRAL_MAX_BITS >= 64
462 _CRTIMP
int __cdecl
_wstat32i64(const wchar_t *_Name
,struct _stat32i64
*_Stat
);
463 _CRTIMP
int __cdecl
_wstat64i32(const wchar_t *_Name
,struct _stat64i32
*_Stat
);
464 _CRTIMP
int __cdecl
_wstat64(const wchar_t *_Name
,struct _stat64
*_Stat
);
469 #ifndef _WCONIO_DEFINED
470 #define _WCONIO_DEFINED
471 _CRTIMP
wchar_t *_cgetws(wchar_t *_Buffer
);
472 _CRTIMP
wint_t __cdecl
_getwch(void);
473 _CRTIMP
wint_t __cdecl
_getwche(void);
474 _CRTIMP
wint_t __cdecl
_putwch(wchar_t _WCh
);
475 _CRTIMP
wint_t __cdecl
_ungetwch(wint_t _WCh
);
476 _CRTIMP
int __cdecl
_cputws(const wchar_t *_String
);
477 _CRTIMP
int __cdecl
_cwprintf(const wchar_t *_Format
,...);
478 _CRTIMP
int __cdecl
_cwscanf(const wchar_t *_Format
,...);
479 _CRTIMP
int __cdecl
_cwscanf_l(const wchar_t *_Format
,_locale_t _Locale
,...);
480 _CRTIMP
int __cdecl
_vcwprintf(const wchar_t *_Format
,va_list _ArgList
);
481 _CRTIMP
int __cdecl
_cwprintf_p(const wchar_t *_Format
,...);
482 _CRTIMP
int __cdecl
_vcwprintf_p(const wchar_t *_Format
,va_list _ArgList
);
484 _CRTIMP
int __cdecl
_cwprintf_l(const wchar_t *_Format
,_locale_t _Locale
,...);
485 _CRTIMP
int __cdecl
_vcwprintf_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
486 _CRTIMP
int __cdecl
_cwprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,...);
487 _CRTIMP
int __cdecl
_vcwprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
488 wint_t __cdecl
_putwch_nolock(wchar_t _WCh
);
489 wint_t __cdecl
_getwch_nolock(void);
490 wint_t __cdecl
_getwche_nolock(void);
491 wint_t __cdecl
_ungetwch_nolock(wint_t _WCh
);
494 #ifndef _WSTDIO_DEFINED
495 #define _WSTDIO_DEFINED
498 _CRTIMP
FILE *__cdecl
_wfsopen(const wchar_t *_Filename
,const wchar_t *_Mode
);
500 _CRTIMP
FILE *__cdecl
_wfsopen(const wchar_t *_Filename
,const wchar_t *_Mode
,int _ShFlag
);
503 _CRTIMP_ALT
wint_t __cdecl
fgetwc(FILE *_File
);
504 _CRTIMP
wint_t __cdecl
_fgetwchar(void);
505 _CRTIMP
wint_t __cdecl
fputwc(wchar_t _Ch
,FILE *_File
);
506 _CRTIMP
wint_t __cdecl
_fputwchar(wchar_t _Ch
);
507 _CRTIMP
wint_t __cdecl
getwc(FILE *_File
);
508 _CRTIMP
wint_t __cdecl
getwchar(void);
509 _CRTIMP
wint_t __cdecl
putwc(wchar_t _Ch
,FILE *_File
);
510 _CRTIMP
wint_t __cdecl
putwchar(wchar_t _Ch
);
511 _CRTIMP_ALT
wint_t __cdecl
ungetwc(wint_t _Ch
,FILE *_File
);
512 _CRTIMP
wchar_t *__cdecl
fgetws(wchar_t *_Dst
,int _SizeInWords
,FILE *_File
);
513 _CRTIMP
int __cdecl
fputws(const wchar_t *_Str
,FILE *_File
);
514 _CRTIMP
wchar_t *__cdecl
_getws(wchar_t *_String
);
515 _CRTIMP
int __cdecl
_putws(const wchar_t *_Str
);
516 _CRTIMP
int __cdecl
fwprintf(FILE *_File
,const wchar_t *_Format
,...);
517 _CRTIMP
int __cdecl
wprintf(const wchar_t *_Format
,...);
518 _CRTIMP
int __cdecl
_scwprintf(const wchar_t *_Format
,...);
519 _CRTIMP
int __cdecl
vfwprintf(FILE *_File
,const wchar_t *_Format
,va_list _ArgList
);
520 _CRTIMP
int __cdecl
vwprintf(const wchar_t *_Format
,va_list _ArgList
);
521 _CRTIMP
int __cdecl
swprintf(wchar_t*, const wchar_t*, ...);
522 _CRTIMP
int __cdecl
vswprintf(wchar_t*, const wchar_t*,va_list);
523 _CRTIMP
int __cdecl
_swprintf_c(wchar_t *_DstBuf
,size_t _SizeInWords
,const wchar_t *_Format
,...);
524 _CRTIMP
int __cdecl
_vswprintf_c(wchar_t *_DstBuf
,size_t _SizeInWords
,const wchar_t *_Format
,va_list _ArgList
);
525 _CRTIMP
int __cdecl
_snwprintf(wchar_t *_Dest
,size_t _Count
,const wchar_t *_Format
,...);
526 _CRTIMP
int __cdecl
_vsnwprintf(wchar_t *_Dest
,size_t _Count
,const wchar_t *_Format
,va_list _Args
);
527 #ifndef __NO_ISOCEXT /* externs in libmingwex.a */
528 _CRTIMP
int __cdecl
snwprintf (wchar_t *s
, size_t n
, const wchar_t * format
, ...);
529 __CRT_INLINE
int __cdecl
vsnwprintf (wchar_t *s
, size_t n
, const wchar_t *format
, va_list arg
) { return _vsnwprintf(s
,n
,format
,arg
); }
530 _CRTIMP
int __cdecl
vwscanf (const wchar_t *, va_list);
531 _CRTIMP
int __cdecl
vfwscanf (FILE *,const wchar_t *,va_list);
532 _CRTIMP
int __cdecl
vswscanf (const wchar_t *,const wchar_t *,va_list);
534 _CRTIMP
int __cdecl
_fwprintf_p(FILE *_File
,const wchar_t *_Format
,...);
535 _CRTIMP
int __cdecl
_wprintf_p(const wchar_t *_Format
,...);
536 _CRTIMP
int __cdecl
_vfwprintf_p(FILE *_File
,const wchar_t *_Format
,va_list _ArgList
);
537 _CRTIMP
int __cdecl
_vwprintf_p(const wchar_t *_Format
,va_list _ArgList
);
538 _CRTIMP
int __cdecl
_swprintf_p(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,...);
539 _CRTIMP
int __cdecl
_vswprintf_p(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,va_list _ArgList
);
540 _CRTIMP
int __cdecl
_scwprintf_p(const wchar_t *_Format
,...);
541 _CRTIMP
int __cdecl
_vscwprintf_p(const wchar_t *_Format
,va_list _ArgList
);
542 _CRTIMP
int __cdecl
_wprintf_l(const wchar_t *_Format
,_locale_t _Locale
,...);
543 _CRTIMP
int __cdecl
_wprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,...);
544 _CRTIMP
int __cdecl
_vwprintf_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
545 _CRTIMP
int __cdecl
_vwprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
546 _CRTIMP
int __cdecl
_fwprintf_l(FILE *_File
,const wchar_t *_Format
,_locale_t _Locale
,...);
547 _CRTIMP
int __cdecl
_fwprintf_p_l(FILE *_File
,const wchar_t *_Format
,_locale_t _Locale
,...);
548 _CRTIMP
int __cdecl
_vfwprintf_l(FILE *_File
,const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
549 _CRTIMP
int __cdecl
_vfwprintf_p_l(FILE *_File
,const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
550 _CRTIMP
int __cdecl
_swprintf_c_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,...);
551 _CRTIMP
int __cdecl
_swprintf_p_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,...);
552 _CRTIMP
int __cdecl
_vswprintf_c_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
553 _CRTIMP
int __cdecl
_vswprintf_p_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
554 _CRTIMP
int __cdecl
_scwprintf_l(const wchar_t *_Format
,_locale_t _Locale
,...);
555 _CRTIMP
int __cdecl
_scwprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,...);
556 _CRTIMP
int __cdecl
_vscwprintf_p_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
557 _CRTIMP
int __cdecl
_snwprintf_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,...);
558 _CRTIMP
int __cdecl
_vsnwprintf_l(wchar_t *_DstBuf
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
559 _CRTIMP
int __cdecl
_swprintf(wchar_t *_Dest
,const wchar_t *_Format
,...);
560 _CRTIMP
int __cdecl
_vswprintf(wchar_t *_Dest
,const wchar_t *_Format
,va_list _Args
);
561 _CRTIMP
int __cdecl
__swprintf_l(wchar_t *_Dest
,const wchar_t *_Format
,_locale_t _Plocinfo
,...);
562 _CRTIMP
int __cdecl
__vswprintf_l(wchar_t *_Dest
,const wchar_t *_Format
,_locale_t _Plocinfo
,va_list _Args
);
564 #ifdef _CRT_NON_CONFORMING_SWPRINTFS
566 #define swprintf _swprintf
567 #define vswprintf _vswprintf
568 #define _swprintf_l __swprintf_l
569 #define _vswprintf_l __vswprintf_l
573 _CRTIMP
wchar_t *__cdecl
_wtempnam(const wchar_t *_Directory
,const wchar_t *_FilePrefix
);
574 _CRTIMP
int __cdecl
_vscwprintf(const wchar_t *_Format
,va_list _ArgList
);
575 _CRTIMP
int __cdecl
_vscwprintf_l(const wchar_t *_Format
,_locale_t _Locale
,va_list _ArgList
);
576 int __cdecl
fwscanf(FILE *_File
,const wchar_t *_Format
,...);
577 _CRTIMP
int __cdecl
_fwscanf_l(FILE *_File
,const wchar_t *_Format
,_locale_t _Locale
,...);
578 int __cdecl
swscanf(const wchar_t *_Src
,const wchar_t *_Format
,...);
579 _CRTIMP
int __cdecl
_swscanf_l(const wchar_t *_Src
,const wchar_t *_Format
,_locale_t _Locale
,...);
580 _CRTIMP
int __cdecl
_snwscanf(const wchar_t *_Src
,size_t _MaxCount
,const wchar_t *_Format
,...);
581 _CRTIMP
int __cdecl
_snwscanf_l(const wchar_t *_Src
,size_t _MaxCount
,const wchar_t *_Format
,_locale_t _Locale
,...);
582 int __cdecl
wscanf(const wchar_t *_Format
,...);
583 _CRTIMP
int __cdecl
_wscanf_l(const wchar_t *_Format
,_locale_t _Locale
,...);
584 _CRTIMP
FILE *__cdecl
_wfdopen(int _FileHandle
,const wchar_t *_Mode
);
585 _CRTIMP
FILE *__cdecl
_wfopen(const wchar_t *_Filename
,const wchar_t *_Mode
);
586 _CRTIMP
FILE *__cdecl
_wfreopen(const wchar_t *_Filename
,const wchar_t *_Mode
,FILE *_OldFile
);
588 #ifndef _CRT_WPERROR_DEFINED
589 #define _CRT_WPERROR_DEFINED
590 _CRTIMP
void __cdecl
_wperror(const wchar_t *_ErrMsg
);
592 _CRTIMP
FILE *__cdecl
_wpopen(const wchar_t *_Command
,const wchar_t *_Mode
);
593 #if !defined(NO_OLDNAMES) && !defined(wpopen)
594 #define wpopen _wpopen
596 _CRTIMP
int __cdecl
_wremove(const wchar_t *_Filename
);
597 _CRTIMP
wchar_t *__cdecl
_wtmpnam(wchar_t *_Buffer
);
598 _CRTIMP
wint_t __cdecl
_fgetwc_nolock(FILE *_File
);
599 _CRTIMP
wint_t __cdecl
_fputwc_nolock(wchar_t _Ch
,FILE *_File
);
600 _CRTIMP
wint_t __cdecl
_ungetwc_nolock(wint_t _Ch
,FILE *_File
);
602 #undef _CRT_GETPUTWCHAR_NOINLINE
604 #if !defined(__cplusplus) || defined(_CRT_GETPUTWCHAR_NOINLINE)
605 #define getwchar() fgetwc(stdin)
606 #define putwchar(_c) fputwc((_c),stdout)
608 __CRT_INLINE
wint_t __cdecl
getwchar() {return (fgetwc(stdin
)); }
609 __CRT_INLINE
wint_t __cdecl
putwchar(wchar_t _C
) {return (fputwc(_C
,stdout
)); }
612 #define getwc(_stm) fgetwc(_stm)
613 #define putwc(_c,_stm) fputwc(_c,_stm)
614 #define _putwc_nolock(_c,_stm) _fputwc_nolock(_c,_stm)
615 #define _getwc_nolock(_c) _fgetwc_nolock(_c)
618 #ifndef _WSTDLIB_DEFINED
619 #define _WSTDLIB_DEFINED
621 _CRTIMP
wchar_t *__cdecl
_itow(int _Value
,wchar_t *_Dest
,int _Radix
);
622 _CRTIMP
wchar_t *__cdecl
_ltow(long _Value
,wchar_t *_Dest
,int _Radix
);
623 _CRTIMP
wchar_t *__cdecl
_ultow(unsigned long _Value
,wchar_t *_Dest
,int _Radix
);
624 double __cdecl
wcstod(const wchar_t *_Str
,wchar_t **_EndPtr
);
625 _CRTIMP
double __cdecl
_wcstod_l(const wchar_t *_Str
,wchar_t **_EndPtr
,_locale_t _Locale
);
626 float __cdecl
wcstof( const wchar_t *nptr
, wchar_t **endptr
);
627 #if !defined __NO_ISOCEXT /* in libmingwex.a */
628 float __cdecl
wcstof (const wchar_t * __restrict__
, wchar_t ** __restrict__
);
629 long double __cdecl
wcstold (const wchar_t * __restrict__
, wchar_t ** __restrict__
);
630 #endif /* __NO_ISOCEXT */
631 long __cdecl
wcstol(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
632 _CRTIMP
long __cdecl
_wcstol_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
633 unsigned long __cdecl
wcstoul(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
634 _CRTIMP
unsigned long __cdecl
_wcstoul_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
635 _CRTIMP
wchar_t *__cdecl
_wgetenv(const wchar_t *_VarName
);
636 #ifndef _CRT_WSYSTEM_DEFINED
637 #define _CRT_WSYSTEM_DEFINED
638 _CRTIMP
int __cdecl
_wsystem(const wchar_t *_Command
);
640 _CRTIMP
double __cdecl
_wtof(const wchar_t *_Str
);
641 _CRTIMP
double __cdecl
_wtof_l(const wchar_t *_Str
,_locale_t _Locale
);
642 _CRTIMP
int __cdecl
_wtoi(const wchar_t *_Str
);
643 _CRTIMP
int __cdecl
_wtoi_l(const wchar_t *_Str
,_locale_t _Locale
);
644 _CRTIMP
long __cdecl
_wtol(const wchar_t *_Str
);
645 _CRTIMP
long __cdecl
_wtol_l(const wchar_t *_Str
,_locale_t _Locale
);
647 #if _INTEGRAL_MAX_BITS >= 64
648 _CRTIMP
wchar_t *__cdecl
_i64tow(__int64 _Val
,wchar_t *_DstBuf
,int _Radix
);
649 _CRTIMP
wchar_t *__cdecl
_ui64tow(unsigned __int64 _Val
,wchar_t *_DstBuf
,int _Radix
);
650 _CRTIMP __int64 __cdecl
_wtoi64(const wchar_t *_Str
);
651 _CRTIMP __int64 __cdecl
_wtoi64_l(const wchar_t *_Str
,_locale_t _Locale
);
652 _CRTIMP __int64 __cdecl
_wcstoi64(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
653 _CRTIMP __int64 __cdecl
_wcstoi64_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
654 _CRTIMP
unsigned __int64 __cdecl
_wcstoui64(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
655 _CRTIMP
unsigned __int64 __cdecl
_wcstoui64_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
660 #ifndef _WSTDLIBP_DEFINED
661 #define _WSTDLIBP_DEFINED
662 _CRTIMP
wchar_t *__cdecl
_wfullpath(wchar_t *_FullPath
,const wchar_t *_Path
,size_t _SizeInWords
);
663 _CRTIMP
void __cdecl
_wmakepath(wchar_t *_ResultPath
,const wchar_t *_Drive
,const wchar_t *_Dir
,const wchar_t *_Filename
,const wchar_t *_Ext
);
664 #ifndef _CRT_WPERROR_DEFINED
665 #define _CRT_WPERROR_DEFINED
666 _CRTIMP
void __cdecl
_wperror(const wchar_t *_ErrMsg
);
668 _CRTIMP
int __cdecl
_wputenv(const wchar_t *_EnvString
);
669 _CRTIMP
void __cdecl
_wsearchenv(const wchar_t *_Filename
,const wchar_t *_EnvVar
,wchar_t *_ResultPath
);
670 _CRTIMP
void __cdecl
_wsplitpath(const wchar_t *_FullPath
,wchar_t *_Drive
,wchar_t *_Dir
,wchar_t *_Filename
,wchar_t *_Ext
);
674 #ifndef _WSTRING_DEFINED
675 #define _WSTRING_DEFINED
676 _CRTIMP
wchar_t *__cdecl
_wcsdup(const wchar_t *_Str
);
677 wchar_t *__cdecl
wcscat(wchar_t *_Dest
,const wchar_t *_Source
);
678 _CONST_RETURN
wchar_t *__cdecl
wcschr(const wchar_t *_Str
,wchar_t _Ch
);
679 int __cdecl
wcscmp(const wchar_t *_Str1
,const wchar_t *_Str2
);
680 wchar_t *__cdecl
wcscpy(wchar_t *_Dest
,const wchar_t *_Source
);
681 size_t __cdecl
wcscspn(const wchar_t *_Str
,const wchar_t *_Control
);
682 size_t __cdecl
wcslen(const wchar_t *_Str
);
683 size_t __cdecl
wcsnlen(const wchar_t *_Src
,size_t _MaxCount
);
684 wchar_t *__cdecl
wcsncat(wchar_t *_Dest
,const wchar_t *_Source
,size_t _Count
);
685 int __cdecl
wcsncmp(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
);
686 wchar_t *__cdecl
wcsncpy(wchar_t *_Dest
,const wchar_t *_Source
,size_t _Count
);
687 _CONST_RETURN
wchar_t *__cdecl
wcspbrk(const wchar_t *_Str
,const wchar_t *_Control
);
688 _CONST_RETURN
wchar_t *__cdecl
wcsrchr(const wchar_t *_Str
,wchar_t _Ch
);
689 size_t __cdecl
wcsspn(const wchar_t *_Str
,const wchar_t *_Control
);
690 _CONST_RETURN
wchar_t *__cdecl
wcsstr(const wchar_t *_Str
,const wchar_t *_SubStr
);
691 wchar_t *__cdecl
wcstok(wchar_t *_Str
,const wchar_t *_Delim
);
692 _CRTIMP
wchar_t *__cdecl
_wcserror(int _ErrNum
);
693 _CRTIMP
wchar_t *__cdecl
__wcserror(const wchar_t *_Str
);
694 _CRTIMP
int __cdecl
_wcsicmp(const wchar_t *_Str1
,const wchar_t *_Str2
);
695 _CRTIMP
int __cdecl
_wcsicmp_l(const wchar_t *_Str1
,const wchar_t *_Str2
,_locale_t _Locale
);
696 _CRTIMP
int __cdecl
_wcsnicmp(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
);
697 _CRTIMP
int __cdecl
_wcsnicmp_l(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
,_locale_t _Locale
);
698 _CRTIMP
wchar_t *__cdecl
_wcsnset(wchar_t *_Str
,wchar_t _Val
,size_t _MaxCount
);
699 _CRTIMP
wchar_t *__cdecl
_wcsrev(wchar_t *_Str
);
700 _CRTIMP
wchar_t *__cdecl
_wcsset(wchar_t *_Str
,wchar_t _Val
);
701 _CRTIMP
wchar_t *__cdecl
_wcslwr(wchar_t *_String
);
702 _CRTIMP
wchar_t *_wcslwr_l(wchar_t *_String
,_locale_t _Locale
);
703 _CRTIMP
wchar_t *__cdecl
_wcsupr(wchar_t *_String
);
704 _CRTIMP
wchar_t *_wcsupr_l(wchar_t *_String
,_locale_t _Locale
);
705 size_t __cdecl
wcsxfrm(wchar_t *_Dst
,const wchar_t *_Src
,size_t _MaxCount
);
706 _CRTIMP
size_t __cdecl
_wcsxfrm_l(wchar_t *_Dst
,const wchar_t *_Src
,size_t _MaxCount
,_locale_t _Locale
);
707 int __cdecl
wcscoll(const wchar_t *_Str1
,const wchar_t *_Str2
);
708 _CRTIMP
int __cdecl
_wcscoll_l(const wchar_t *_Str1
,const wchar_t *_Str2
,_locale_t _Locale
);
709 _CRTIMP
int __cdecl
_wcsicoll(const wchar_t *_Str1
,const wchar_t *_Str2
);
710 _CRTIMP
int __cdecl
_wcsicoll_l(const wchar_t *_Str1
,const wchar_t *_Str2
,_locale_t _Locale
);
711 _CRTIMP
int __cdecl
_wcsncoll(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
);
712 _CRTIMP
int __cdecl
_wcsncoll_l(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
,_locale_t _Locale
);
713 _CRTIMP
int __cdecl
_wcsnicoll(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
);
714 _CRTIMP
int __cdecl
_wcsnicoll_l(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
,_locale_t _Locale
);
717 _CRTIMP
wchar_t *__cdecl
wcsdup(const wchar_t *_Str
);
718 #define wcswcs wcsstr
719 _CRTIMP
int __cdecl
wcsicmp(const wchar_t *_Str1
,const wchar_t *_Str2
);
720 _CRTIMP
int __cdecl
wcsnicmp(const wchar_t *_Str1
,const wchar_t *_Str2
,size_t _MaxCount
);
721 _CRTIMP
wchar_t *__cdecl
wcsnset(wchar_t *_Str
,wchar_t _Val
,size_t _MaxCount
);
722 _CRTIMP
wchar_t *__cdecl
wcsrev(wchar_t *_Str
);
723 _CRTIMP
wchar_t *__cdecl
wcsset(wchar_t *_Str
,wchar_t _Val
);
724 _CRTIMP
wchar_t *__cdecl
wcslwr(wchar_t *_Str
);
725 _CRTIMP
wchar_t *__cdecl
wcsupr(wchar_t *_Str
);
726 _CRTIMP
int __cdecl
wcsicoll(const wchar_t *_Str1
,const wchar_t *_Str2
);
745 #ifndef _WTIME_DEFINED
746 #define _WTIME_DEFINED
748 _CRTIMP
wchar_t *__cdecl
_wasctime(const struct tm
*_Tm
);
749 _CRTIMP
wchar_t *__cdecl
_wctime32(const __time32_t
*_Time
);
750 size_t __cdecl
wcsftime(wchar_t *_Buf
,size_t _SizeInWords
,const wchar_t *_Format
,const struct tm
*_Tm
);
751 _CRTIMP
size_t __cdecl
_wcsftime_l(wchar_t *_Buf
,size_t _SizeInWords
,const wchar_t *_Format
,const struct tm
*_Tm
,_locale_t _Locale
);
752 _CRTIMP
wchar_t *__cdecl
_wstrdate(wchar_t *_Buffer
);
753 _CRTIMP
wchar_t *__cdecl
_wstrtime(wchar_t *_Buffer
);
754 #if _INTEGRAL_MAX_BITS >= 64
755 _CRTIMP
wchar_t *__cdecl
_wctime64(const __time64_t
*_Time
);
758 #if !defined (RC_INVOKED) && !defined (_INC_WTIME_INL)
759 #define _INC_WTIME_INL
760 #ifdef _USE_32BIT_TIME_T
761 __CRT_INLINE
wchar_t *__cdecl
_wctime(const time_t *_Time
) { return _wctime32(_Time
); }
763 __CRT_INLINE
wchar_t *__cdecl
_wctime(const time_t *_Time
) { return _wctime64(_Time
); }
768 typedef int mbstate_t;
769 typedef wchar_t _Wint_t
;
771 wint_t __cdecl
btowc(int);
772 size_t __cdecl
mbrlen(const char *_Ch
,size_t _SizeInBytes
,mbstate_t *_State
);
773 size_t __cdecl
mbrtowc(wchar_t *_DstCh
,const char *_SrcCh
,size_t _SizeInBytes
,mbstate_t *_State
);
774 size_t __cdecl
mbsrtowcs(wchar_t *_Dest
,const char **_PSrc
,size_t _Count
,mbstate_t *_State
);
775 size_t __cdecl
wcrtomb(char *_Dest
,wchar_t _Source
,mbstate_t *_State
);
776 size_t __cdecl
wcsrtombs(char *_Dest
,const wchar_t **_PSource
,size_t _Count
,mbstate_t *_State
);
777 int __cdecl
wctob(wint_t _WCh
);
779 #ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */
780 wchar_t *__cdecl
wmemset(wchar_t *s
, wchar_t c
, size_t n
);
781 _CONST_RETURN
wchar_t *__cdecl
wmemchr(const wchar_t *s
, wchar_t c
, size_t n
);
782 int wmemcmp(const wchar_t *s1
, const wchar_t *s2
,size_t n
);
783 wchar_t *__cdecl
wmemcpy(wchar_t *s1
,const wchar_t *s2
,size_t n
);
784 wchar_t *__cdecl
wmemmove(wchar_t *s1
, const wchar_t *s2
, size_t n
);
785 long long __cdecl
wcstoll(const wchar_t *nptr
,wchar_t **endptr
, int base
);
786 unsigned long long __cdecl
wcstoull(const wchar_t *nptr
,wchar_t **endptr
, int base
);
787 #endif /* __NO_ISOCEXT */
789 void *__cdecl
memmove(void *_Dst
,const void *_Src
,size_t _MaxCount
);
790 void *__cdecl
memcpy(void *_Dst
,const void *_Src
,size_t _MaxCount
);
791 __CRT_INLINE
int __cdecl
fwide(FILE *_F
,int _M
) { (void)_F
; return (_M
); }
792 __CRT_INLINE
int __cdecl
mbsinit(const mbstate_t *_P
) { return (!_P
|| *_P
==0); }
793 __CRT_INLINE _CONST_RETURN
wchar_t *__cdecl
wmemchr(const wchar_t *_S
,wchar_t _C
,size_t _N
) { for (;0<_N
;++_S
,--_N
) if (*_S
==_C
) return (_CONST_RETURN
wchar_t *)(_S
); return (0); }
794 __CRT_INLINE
int __cdecl
wmemcmp(const wchar_t *_S1
,const wchar_t *_S2
,size_t _N
) { for (; 0 < _N
; ++_S1
,++_S2
,--_N
) if (*_S1
!=*_S2
) return (*_S1
< *_S2
? -1 : +1); return (0); }
795 __CRT_INLINE
wchar_t *__cdecl
wmemcpy(wchar_t *_S1
,const wchar_t *_S2
,size_t _N
) { return (wchar_t *)memcpy(_S1
,_S2
,_N
*sizeof(wchar_t)); }
796 __CRT_INLINE
wchar_t *__cdecl
wmemmove(wchar_t *_S1
,const wchar_t *_S2
,size_t _N
) { return (wchar_t *)memmove(_S1
,_S2
,_N
*sizeof(wchar_t)); }
797 __CRT_INLINE
wchar_t *__cdecl
wmemset(wchar_t *_S
,wchar_t _C
,size_t _N
) {
799 for (;0<_N
;++_Su
,--_N
) {
815 //#include <sec_api/wchar_s.h>