Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwchar.h
Go to the documentation of this file.
00001 00006 #ifndef _INC_WCHAR 00007 #define _INC_WCHAR 00008 00009 #include <crtdefs.h> 00010 00011 #define __need___va_list 00012 #include <stdarg.h> 00013 00014 #pragma pack(push,_CRT_PACKING) 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif 00019 00020 #ifdef _MSC_VER 00021 #pragma warning(push) 00022 #pragma warning(disable:4820) 00023 #endif 00024 00025 #ifndef WCHAR_MIN 00026 #define WCHAR_MIN 0 00027 #endif 00028 #ifndef WCHAR_MAX 00029 #define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */ 00030 #endif 00031 00032 #ifndef WEOF 00033 #define WEOF (wint_t)(0xFFFF) 00034 #endif 00035 00036 #ifndef _FILE_DEFINED 00037 struct _iobuf { 00038 char *_ptr; 00039 int _cnt; 00040 char *_base; 00041 int _flag; 00042 int _file; 00043 int _charbuf; 00044 int _bufsiz; 00045 char *_tmpfname; 00046 }; 00047 typedef struct _iobuf FILE; 00048 #define _FILE_DEFINED 00049 #endif 00050 00051 #ifndef _STDIO_DEFINED 00052 _CRTIMP FILE *__cdecl __iob_func(void); 00053 _CRTDATA(extern FILE _iob[];) 00054 #ifdef _M_CEE_PURE 00055 #define _iob __iob_func() 00056 #endif 00057 #endif 00058 00059 #ifndef _STDSTREAM_DEFINED 00060 #define _STDSTREAM_DEFINED 00061 #define stdin (&_iob[0]) 00062 #define stdout (&_iob[1]) 00063 #define stderr (&_iob[1]) 00064 #endif /* !_STDSTREAM_DEFINED */ 00065 00066 #ifndef _FSIZE_T_DEFINED 00067 typedef unsigned long _fsize_t; 00068 #define _FSIZE_T_DEFINED 00069 #endif 00070 00071 #ifndef _WFINDDATA_T_DEFINED 00072 struct _wfinddata_t { 00073 unsigned attrib; 00074 time_t time_create; 00075 time_t time_access; 00076 time_t time_write; 00077 _fsize_t size; 00078 wchar_t name[260]; 00079 }; 00080 00081 struct _wfinddata32_t { 00082 unsigned attrib; 00083 __time32_t time_create; 00084 __time32_t time_access; 00085 __time32_t time_write; 00086 _fsize_t size; 00087 wchar_t name[260]; 00088 }; 00089 00090 #if _INTEGRAL_MAX_BITS >= 64 00091 struct _wfinddatai64_t { 00092 unsigned attrib; 00093 time_t time_create; 00094 time_t time_access; 00095 time_t time_write; 00096 __MINGW_EXTENSION __int64 size; 00097 wchar_t name[260]; 00098 }; 00099 00100 struct _wfinddata32i64_t { 00101 unsigned attrib; 00102 __time32_t time_create; 00103 __time32_t time_access; 00104 __time32_t time_write; 00105 __MINGW_EXTENSION __int64 size; 00106 wchar_t name[260]; 00107 }; 00108 00109 struct _wfinddata64i32_t { 00110 unsigned attrib; 00111 __time64_t time_create; 00112 __time64_t time_access; 00113 __time64_t time_write; 00114 _fsize_t size; 00115 wchar_t name[260]; 00116 }; 00117 00118 struct _wfinddata64_t { 00119 unsigned attrib; 00120 __time64_t time_create; 00121 __time64_t time_access; 00122 __time64_t time_write; 00123 __MINGW_EXTENSION __int64 size; 00124 wchar_t name[260]; 00125 }; 00126 #endif 00127 00128 #define _WFINDDATA_T_DEFINED 00129 #endif /* !_WFINDDATA_T_DEFINED */ 00130 00131 #ifndef NULL 00132 #ifdef __cplusplus 00133 #define NULL 0 00134 #else 00135 #define NULL ((void *)0) 00136 #endif 00137 #endif 00138 00139 #ifndef _CRT_CTYPEDATA_DEFINED 00140 # define _CRT_CTYPEDATA_DEFINED 00141 # ifndef _CTYPE_DISABLE_MACROS 00142 # ifndef __PCTYPE_FUNC 00143 # ifdef _DLL 00144 # define __PCTYPE_FUNC __pctype_func() 00145 # else 00146 # define __PCTYPE_FUNC _pctype 00147 # endif 00148 # endif /* !__PCTYPE_FUNC */ 00149 _CRTIMP const unsigned short * __cdecl __pctype_func(void); 00150 # ifndef _M_CEE_PURE 00151 _CRTDATA(extern unsigned short *_pctype); 00152 # else 00153 # define _pctype (__pctype_func()) 00154 # endif /* !_M_CEE_PURE */ 00155 # endif /* !_CTYPE_DISABLE_MACROS */ 00156 #endif /* !_CRT_CTYPEDATA_DEFINED */ 00157 00158 #ifndef _CRT_WCTYPEDATA_DEFINED 00159 #define _CRT_WCTYPEDATA_DEFINED 00160 # ifndef _CTYPE_DISABLE_MACROS 00161 _CRTDATA(extern unsigned short *_wctype); 00162 _CRTIMP const wctype_t * __cdecl __pwctype_func(void); 00163 # ifndef _M_CEE_PURE 00164 _CRTDATA(extern const wctype_t *_pwctype); 00165 # else 00166 # define _pwctype (__pwctype_func()) 00167 # endif /* !_M_CEE_PURE */ 00168 # endif /* !_CTYPE_DISABLE_MACROS */ 00169 #endif /* !_CRT_WCTYPEDATA_DEFINED */ 00170 00171 #define _UPPER 0x1 00172 #define _LOWER 0x2 00173 #define _DIGIT 0x4 00174 #define _SPACE 0x8 00175 00176 #define _PUNCT 0x10 00177 #define _CONTROL 0x20 00178 #define _BLANK 0x40 00179 #define _HEX 0x80 00180 00181 #define _LEADBYTE 0x8000 00182 #define _ALPHA (0x0100|_UPPER|_LOWER) 00183 00184 #ifndef _WCTYPE_DEFINED 00185 #define _WCTYPE_DEFINED 00186 _CRTIMP int __cdecl iswalpha(wint_t _C); 00187 _CRTIMP int __cdecl _iswalpha_l(wint_t _C,_locale_t _Locale); 00188 _CRTIMP int __cdecl iswupper(wint_t _C); 00189 _CRTIMP int __cdecl _iswupper_l(wint_t _C,_locale_t _Locale); 00190 _CRTIMP int __cdecl iswlower(wint_t _C); 00191 _CRTIMP int __cdecl _iswlower_l(wint_t _C,_locale_t _Locale); 00192 _CRTIMP int __cdecl iswdigit(wint_t _C); 00193 _CRTIMP int __cdecl _iswdigit_l(wint_t _C,_locale_t _Locale); 00194 _CRTIMP int __cdecl iswxdigit(wint_t _C); 00195 _CRTIMP int __cdecl _iswxdigit_l(wint_t _C,_locale_t _Locale); 00196 _CRTIMP int __cdecl iswspace(wint_t _C); 00197 _CRTIMP int __cdecl _iswspace_l(wint_t _C,_locale_t _Locale); 00198 _CRTIMP int __cdecl iswpunct(wint_t _C); 00199 _CRTIMP int __cdecl _iswpunct_l(wint_t _C,_locale_t _Locale); 00200 _CRTIMP int __cdecl iswalnum(wint_t _C); 00201 _CRTIMP int __cdecl _iswalnum_l(wint_t _C,_locale_t _Locale); 00202 _CRTIMP int __cdecl iswprint(wint_t _C); 00203 _CRTIMP int __cdecl _iswprint_l(wint_t _C,_locale_t _Locale); 00204 _CRTIMP int __cdecl iswgraph(wint_t _C); 00205 _CRTIMP int __cdecl _iswgraph_l(wint_t _C,_locale_t _Locale); 00206 _CRTIMP int __cdecl iswcntrl(wint_t _C); 00207 _CRTIMP int __cdecl _iswcntrl_l(wint_t _C,_locale_t _Locale); 00208 _CRTIMP int __cdecl iswascii(wint_t _C); 00209 _CRTIMP int __cdecl isleadbyte(int _C); 00210 _CRTIMP int __cdecl _isleadbyte_l(int _C,_locale_t _Locale); 00211 _CRTIMP wint_t __cdecl towupper(wint_t _C); 00212 _CRTIMP wint_t __cdecl _towupper_l(wint_t _C,_locale_t _Locale); 00213 _CRTIMP wint_t __cdecl towlower(wint_t _C); 00214 _CRTIMP wint_t __cdecl _towlower_l(wint_t _C,_locale_t _Locale); 00215 _CRTIMP int __cdecl iswctype(wint_t _C,wctype_t _Type); 00216 _CRTIMP int __cdecl _iswctype_l(wint_t _C,wctype_t _Type,_locale_t _Locale); 00217 _CRTIMP int __cdecl __iswcsymf(wint_t _C); 00218 _CRTIMP int __cdecl _iswcsymf_l(wint_t _C,_locale_t _Locale); 00219 _CRTIMP int __cdecl __iswcsym(wint_t _C); 00220 _CRTIMP int __cdecl _iswcsym_l(wint_t _C,_locale_t _Locale); 00221 _CRTIMP int __cdecl is_wctype(wint_t _C,wctype_t _Type); 00222 #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) 00223 _CRTIMP int __cdecl iswblank(wint_t _C); 00224 #endif 00225 #endif 00226 00227 #ifndef _WDIRECT_DEFINED 00228 #define _WDIRECT_DEFINED 00229 _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords); 00230 _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords); 00231 wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords); 00232 _CRTIMP int __cdecl _wchdir(const wchar_t *_Path); 00233 _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path); 00234 _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path); 00235 #endif 00236 00237 #ifndef _WIO_DEFINED 00238 #define _WIO_DEFINED 00239 _CRTIMP int __cdecl _waccess(const wchar_t *_Filename,int _AccessMode); 00240 _CRTIMP int __cdecl _wchmod(const wchar_t *_Filename,int _Mode); 00241 _CRTIMP int __cdecl _wcreat(const wchar_t *_Filename,int _PermissionMode); 00242 _CRTIMP intptr_t __cdecl _wfindfirst32(const wchar_t *_Filename,struct _wfinddata32_t *_FindData); 00243 _CRTIMP int __cdecl _wfindnext32(intptr_t _FindHandle,struct _wfinddata32_t *_FindData); 00244 _CRTIMP int __cdecl _wunlink(const wchar_t *_Filename); 00245 _CRTIMP int __cdecl _wrename(const wchar_t *_NewFilename,const wchar_t *_OldFilename); 00246 _CRTIMP wchar_t *__cdecl _wmktemp(wchar_t *_TemplateName); 00247 #if _INTEGRAL_MAX_BITS >= 64 00248 _CRTIMP intptr_t __cdecl _wfindfirst32i64(const wchar_t *_Filename,struct _wfinddata32i64_t *_FindData); 00249 _CRTIMP intptr_t __cdecl _wfindfirst64i32(const wchar_t *_Filename,struct _wfinddata64i32_t *_FindData); 00250 _CRTIMP intptr_t __cdecl _wfindfirst64(const wchar_t *_Filename,struct _wfinddata64_t *_FindData); 00251 _CRTIMP int __cdecl _wfindnext32i64(intptr_t _FindHandle,struct _wfinddata32i64_t *_FindData); 00252 _CRTIMP int __cdecl _wfindnext64i32(intptr_t _FindHandle,struct _wfinddata64i32_t *_FindData); 00253 _CRTIMP int __cdecl _wfindnext64(intptr_t _FindHandle,struct _wfinddata64_t *_FindData); 00254 #endif 00255 _CRTIMP errno_t __cdecl _wsopen_s(int *_FileHandle,const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,int _PermissionFlag); 00256 #if !defined(__cplusplus) || !(defined(_X86_) && !defined(__x86_64)) 00257 _CRTIMP int __cdecl _wopen(const wchar_t *_Filename,int _OpenFlag,...); 00258 _CRTIMP int __cdecl _wsopen(const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,...); 00259 #else 00260 extern "C++" _CRTIMP int __cdecl _wopen(const wchar_t *_Filename,int _OpenFlag,int _PermissionMode = 0); 00261 extern "C++" _CRTIMP int __cdecl _wsopen(const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,int _PermissionMode = 0); 00262 #endif 00263 #endif /* !_WIO_DEFINED */ 00264 00265 #ifndef _WLOCALE_DEFINED 00266 #define _WLOCALE_DEFINED 00267 _CRTIMP wchar_t *__cdecl _wsetlocale(int _Category,const wchar_t *_Locale); 00268 #endif 00269 00270 #ifndef _WPROCESS_DEFINED 00271 #define _WPROCESS_DEFINED 00272 _CRTIMP intptr_t __cdecl _wexecl(const wchar_t *_Filename,const wchar_t *_ArgList,...); 00273 _CRTIMP intptr_t __cdecl _wexecle(const wchar_t *_Filename,const wchar_t *_ArgList,...); 00274 _CRTIMP intptr_t __cdecl _wexeclp(const wchar_t *_Filename,const wchar_t *_ArgList,...); 00275 _CRTIMP intptr_t __cdecl _wexeclpe(const wchar_t *_Filename,const wchar_t *_ArgList,...); 00276 _CRTIMP intptr_t __cdecl _wexecv(const wchar_t *_Filename,const wchar_t *const *_ArgList); 00277 _CRTIMP intptr_t __cdecl _wexecve(const wchar_t *_Filename,const wchar_t *const *_ArgList,const wchar_t *const *_Env); 00278 _CRTIMP intptr_t __cdecl _wexecvp(const wchar_t *_Filename,const wchar_t *const *_ArgList); 00279 _CRTIMP intptr_t __cdecl _wexecvpe(const wchar_t *_Filename,const wchar_t *const *_ArgList,const wchar_t *const *_Env); 00280 _CRTIMP intptr_t __cdecl _wspawnl(int _Mode,const wchar_t *_Filename,const wchar_t *_ArgList,...); 00281 _CRTIMP intptr_t __cdecl _wspawnle(int _Mode,const wchar_t *_Filename,const wchar_t *_ArgList,...); 00282 _CRTIMP intptr_t __cdecl _wspawnlp(int _Mode,const wchar_t *_Filename,const wchar_t *_ArgList,...); 00283 _CRTIMP intptr_t __cdecl _wspawnlpe(int _Mode,const wchar_t *_Filename,const wchar_t *_ArgList,...); 00284 _CRTIMP intptr_t __cdecl _wspawnv(int _Mode,const wchar_t *_Filename,const wchar_t *const *_ArgList); 00285 _CRTIMP intptr_t __cdecl _wspawnve(int _Mode,const wchar_t *_Filename,const wchar_t *const *_ArgList,const wchar_t *const *_Env); 00286 _CRTIMP intptr_t __cdecl _wspawnvp(int _Mode,const wchar_t *_Filename,const wchar_t *const *_ArgList); 00287 _CRTIMP intptr_t __cdecl _wspawnvpe(int _Mode,const wchar_t *_Filename,const wchar_t *const *_ArgList,const wchar_t *const *_Env); 00288 #ifndef _CRT_WSYSTEM_DEFINED 00289 #define _CRT_WSYSTEM_DEFINED 00290 _CRTIMP int __cdecl _wsystem(const wchar_t *_Command); 00291 #endif /* !_CRT_WSYSTEM_DEFINED */ 00292 #endif /* !_WPROCESS_DEFINED */ 00293 00294 #ifndef _WCTYPE_INLINE_DEFINED 00295 #undef _CRT_WCTYPE_NOINLINE 00296 #if !defined(__cplusplus) || defined(_CRT_WCTYPE_NOINLINE) 00297 #define iswalpha(_c) (iswctype(_c,_ALPHA)) 00298 #define iswupper(_c) (iswctype(_c,_UPPER)) 00299 #define iswlower(_c) (iswctype(_c,_LOWER)) 00300 #define iswdigit(_c) (iswctype(_c,_DIGIT)) 00301 #define iswxdigit(_c) (iswctype(_c,_HEX)) 00302 #define iswspace(_c) (iswctype(_c,_SPACE)) 00303 #define iswpunct(_c) (iswctype(_c,_PUNCT)) 00304 #define iswalnum(_c) (iswctype(_c,_ALPHA|_DIGIT)) 00305 #define iswprint(_c) (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT)) 00306 #define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT)) 00307 #define iswcntrl(_c) (iswctype(_c,_CONTROL)) 00308 #define iswascii(_c) ((unsigned)(_c) < 0x80) 00309 00310 #define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p)) 00311 #define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p)) 00312 #define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p)) 00313 #define _iswdigit_l(_c,_p) (_iswctype_l(_c,_DIGIT,_p)) 00314 #define _iswxdigit_l(_c,_p) (_iswctype_l(_c,_HEX,_p)) 00315 #define _iswspace_l(_c,_p) (_iswctype_l(_c,_SPACE,_p)) 00316 #define _iswpunct_l(_c,_p) (_iswctype_l(_c,_PUNCT,_p)) 00317 #define _iswalnum_l(_c,_p) (_iswctype_l(_c,_ALPHA|_DIGIT,_p)) 00318 #define _iswprint_l(_c,_p) (_iswctype_l(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT,_p)) 00319 #define _iswgraph_l(_c,_p) (_iswctype_l(_c,_PUNCT|_ALPHA|_DIGIT,_p)) 00320 #define _iswcntrl_l(_c,_p) (_iswctype_l(_c,_CONTROL,_p)) 00321 #ifndef _CTYPE_DISABLE_MACROS 00322 #define isleadbyte(_c) (__PCTYPE_FUNC[(unsigned char)(_c)] & _LEADBYTE) 00323 #endif 00324 #endif 00325 #define _WCTYPE_INLINE_DEFINED 00326 #endif 00327 00328 #if !defined(_POSIX_) || defined(__GNUC__) 00329 #ifndef _INO_T_DEFINED 00330 #define _INO_T_DEFINED 00331 typedef unsigned short _ino_t; 00332 #ifndef NO_OLDNAMES 00333 typedef unsigned short ino_t; 00334 #endif 00335 #endif 00336 00337 #ifndef _DEV_T_DEFINED 00338 #define _DEV_T_DEFINED 00339 typedef unsigned int _dev_t; 00340 #ifndef NO_OLDNAMES 00341 typedef unsigned int dev_t; 00342 #endif 00343 #endif 00344 00345 #ifndef _OFF_T_DEFINED 00346 #define _OFF_T_DEFINED 00347 typedef long _off_t; 00348 #ifndef NO_OLDNAMES 00349 typedef long off_t; 00350 #endif 00351 #endif 00352 00353 #ifndef _OFF64_T_DEFINED 00354 #define _OFF64_T_DEFINED 00355 __MINGW_EXTENSION typedef long long _off64_t; 00356 #ifndef NO_OLDNAMES 00357 __MINGW_EXTENSION typedef long long off64_t; 00358 #endif 00359 #endif 00360 00361 #ifndef _STAT_DEFINED 00362 #define _STAT_DEFINED 00363 00364 struct _stat32 { 00365 _dev_t st_dev; 00366 _ino_t st_ino; 00367 unsigned short st_mode; 00368 short st_nlink; 00369 short st_uid; 00370 short st_gid; 00371 _dev_t st_rdev; 00372 _off_t st_size; 00373 __time32_t st_atime; 00374 __time32_t st_mtime; 00375 __time32_t st_ctime; 00376 }; 00377 00378 struct _stat { 00379 _dev_t st_dev; 00380 _ino_t st_ino; 00381 unsigned short st_mode; 00382 short st_nlink; 00383 short st_uid; 00384 short st_gid; 00385 _dev_t st_rdev; 00386 _off_t st_size; 00387 time_t st_atime; 00388 time_t st_mtime; 00389 time_t st_ctime; 00390 }; 00391 00392 #ifndef NO_OLDNAMES 00393 struct stat { 00394 _dev_t st_dev; 00395 _ino_t st_ino; 00396 unsigned short st_mode; 00397 short st_nlink; 00398 short st_uid; 00399 short st_gid; 00400 _dev_t st_rdev; 00401 _off_t st_size; 00402 time_t st_atime; 00403 time_t st_mtime; 00404 time_t st_ctime; 00405 }; 00406 #endif 00407 00408 #if _INTEGRAL_MAX_BITS >= 64 00409 00410 struct _stat32i64 { 00411 _dev_t st_dev; 00412 _ino_t st_ino; 00413 unsigned short st_mode; 00414 short st_nlink; 00415 short st_uid; 00416 short st_gid; 00417 _dev_t st_rdev; 00418 __MINGW_EXTENSION __int64 st_size; 00419 __time32_t st_atime; 00420 __time32_t st_mtime; 00421 __time32_t st_ctime; 00422 }; 00423 00424 struct _stat64i32 { 00425 _dev_t st_dev; 00426 _ino_t st_ino; 00427 unsigned short st_mode; 00428 short st_nlink; 00429 short st_uid; 00430 short st_gid; 00431 _dev_t st_rdev; 00432 _off_t st_size; 00433 __time64_t st_atime; 00434 __time64_t st_mtime; 00435 __time64_t st_ctime; 00436 }; 00437 00438 struct _stat64 { 00439 _dev_t st_dev; 00440 _ino_t st_ino; 00441 unsigned short st_mode; 00442 short st_nlink; 00443 short st_uid; 00444 short st_gid; 00445 _dev_t st_rdev; 00446 __MINGW_EXTENSION __int64 st_size; 00447 __time64_t st_atime; 00448 __time64_t st_mtime; 00449 __time64_t st_ctime; 00450 }; 00451 #endif 00452 00453 #define __stat64 _stat64 00454 00455 #endif 00456 00457 #ifndef _WSTAT_DEFINED 00458 #define _WSTAT_DEFINED 00459 _CRTIMP int __cdecl _wstat(const wchar_t *_Name,struct _stat *_Stat); 00460 _CRTIMP int __cdecl _wstat32(const wchar_t *_Name,struct _stat32 *_Stat); 00461 #if _INTEGRAL_MAX_BITS >= 64 00462 _CRTIMP int __cdecl _wstat32i64(const wchar_t *_Name,struct _stat32i64 *_Stat); 00463 _CRTIMP int __cdecl _wstat64i32(const wchar_t *_Name,struct _stat64i32 *_Stat); 00464 _CRTIMP int __cdecl _wstat64(const wchar_t *_Name,struct _stat64 *_Stat); 00465 #endif 00466 #endif 00467 #endif 00468 00469 #ifndef _WCONIO_DEFINED 00470 #define _WCONIO_DEFINED 00471 _CRTIMP wchar_t *_cgetws(wchar_t *_Buffer); 00472 _CRTIMP wint_t __cdecl _getwch(void); 00473 _CRTIMP wint_t __cdecl _getwche(void); 00474 _CRTIMP wint_t __cdecl _putwch(wchar_t _WCh); 00475 _CRTIMP wint_t __cdecl _ungetwch(wint_t _WCh); 00476 _CRTIMP int __cdecl _cputws(const wchar_t *_String); 00477 _CRTIMP int __cdecl _cwprintf(const wchar_t *_Format,...); 00478 _CRTIMP int __cdecl _cwscanf(const wchar_t *_Format,...); 00479 _CRTIMP int __cdecl _cwscanf_l(const wchar_t *_Format,_locale_t _Locale,...); 00480 _CRTIMP int __cdecl _vcwprintf(const wchar_t *_Format,va_list _ArgList); 00481 _CRTIMP int __cdecl _cwprintf_p(const wchar_t *_Format,...); 00482 _CRTIMP int __cdecl _vcwprintf_p(const wchar_t *_Format,va_list _ArgList); 00483 00484 _CRTIMP int __cdecl _cwprintf_l(const wchar_t *_Format,_locale_t _Locale,...); 00485 _CRTIMP int __cdecl _vcwprintf_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00486 _CRTIMP int __cdecl _cwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,...); 00487 _CRTIMP int __cdecl _vcwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00488 wint_t __cdecl _putwch_nolock(wchar_t _WCh); 00489 wint_t __cdecl _getwch_nolock(void); 00490 wint_t __cdecl _getwche_nolock(void); 00491 wint_t __cdecl _ungetwch_nolock(wint_t _WCh); 00492 #endif 00493 00494 #ifndef _WSTDIO_DEFINED 00495 #define _WSTDIO_DEFINED 00496 00497 #ifdef _POSIX_ 00498 _CRTIMP FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode); 00499 #else 00500 _CRTIMP FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode,int _ShFlag); 00501 #endif 00502 00503 _CRTIMP_ALT wint_t __cdecl fgetwc(FILE *_File); 00504 _CRTIMP wint_t __cdecl _fgetwchar(void); 00505 _CRTIMP wint_t __cdecl fputwc(wchar_t _Ch,FILE *_File); 00506 _CRTIMP wint_t __cdecl _fputwchar(wchar_t _Ch); 00507 _CRTIMP wint_t __cdecl getwc(FILE *_File); 00508 _CRTIMP wint_t __cdecl getwchar(void); 00509 _CRTIMP wint_t __cdecl putwc(wchar_t _Ch,FILE *_File); 00510 _CRTIMP wint_t __cdecl putwchar(wchar_t _Ch); 00511 _CRTIMP_ALT wint_t __cdecl ungetwc(wint_t _Ch,FILE *_File); 00512 _CRTIMP wchar_t *__cdecl fgetws(wchar_t *_Dst,int _SizeInWords,FILE *_File); 00513 _CRTIMP int __cdecl fputws(const wchar_t *_Str,FILE *_File); 00514 _CRTIMP wchar_t *__cdecl _getws(wchar_t *_String); 00515 _CRTIMP int __cdecl _putws(const wchar_t *_Str); 00516 _CRTIMP int __cdecl fwprintf(FILE *_File,const wchar_t *_Format,...); 00517 _CRTIMP int __cdecl wprintf(const wchar_t *_Format,...); 00518 _CRTIMP int __cdecl _scwprintf(const wchar_t *_Format,...); 00519 _CRTIMP int __cdecl vfwprintf(FILE *_File,const wchar_t *_Format,va_list _ArgList); 00520 _CRTIMP int __cdecl vwprintf(const wchar_t *_Format,va_list _ArgList); 00521 _CRTIMP int __cdecl swprintf(wchar_t*, const wchar_t*, ...); 00522 _CRTIMP int __cdecl vswprintf(wchar_t*, const wchar_t*,va_list); 00523 _CRTIMP int __cdecl _swprintf_c(wchar_t *_DstBuf,size_t _SizeInWords,const wchar_t *_Format,...); 00524 _CRTIMP int __cdecl _vswprintf_c(wchar_t *_DstBuf,size_t _SizeInWords,const wchar_t *_Format,va_list _ArgList); 00525 _CRTIMP int __cdecl _snwprintf(wchar_t *_Dest,size_t _Count,const wchar_t *_Format,...); 00526 _CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest,size_t _Count,const wchar_t *_Format,va_list _Args); 00527 #ifndef __NO_ISOCEXT /* externs in libmingwex.a */ 00528 _CRTIMP int __cdecl snwprintf (wchar_t *s, size_t n, const wchar_t * format, ...); 00529 __CRT_INLINE int __cdecl vsnwprintf (wchar_t *s, size_t n, const wchar_t *format, va_list arg) { return _vsnwprintf(s,n,format,arg); } 00530 _CRTIMP int __cdecl vwscanf (const wchar_t *, va_list); 00531 _CRTIMP int __cdecl vfwscanf (FILE *,const wchar_t *,va_list); 00532 _CRTIMP int __cdecl vswscanf (const wchar_t *,const wchar_t *,va_list); 00533 #endif 00534 _CRTIMP int __cdecl _fwprintf_p(FILE *_File,const wchar_t *_Format,...); 00535 _CRTIMP int __cdecl _wprintf_p(const wchar_t *_Format,...); 00536 _CRTIMP int __cdecl _vfwprintf_p(FILE *_File,const wchar_t *_Format,va_list _ArgList); 00537 _CRTIMP int __cdecl _vwprintf_p(const wchar_t *_Format,va_list _ArgList); 00538 _CRTIMP int __cdecl _swprintf_p(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,...); 00539 _CRTIMP int __cdecl _vswprintf_p(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,va_list _ArgList); 00540 _CRTIMP int __cdecl _scwprintf_p(const wchar_t *_Format,...); 00541 _CRTIMP int __cdecl _vscwprintf_p(const wchar_t *_Format,va_list _ArgList); 00542 _CRTIMP int __cdecl _wprintf_l(const wchar_t *_Format,_locale_t _Locale,...); 00543 _CRTIMP int __cdecl _wprintf_p_l(const wchar_t *_Format,_locale_t _Locale,...); 00544 _CRTIMP int __cdecl _vwprintf_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00545 _CRTIMP int __cdecl _vwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00546 _CRTIMP int __cdecl _fwprintf_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,...); 00547 _CRTIMP int __cdecl _fwprintf_p_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,...); 00548 _CRTIMP int __cdecl _vfwprintf_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00549 _CRTIMP int __cdecl _vfwprintf_p_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00550 _CRTIMP int __cdecl _swprintf_c_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...); 00551 _CRTIMP int __cdecl _swprintf_p_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...); 00552 _CRTIMP int __cdecl _vswprintf_c_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00553 _CRTIMP int __cdecl _vswprintf_p_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00554 _CRTIMP int __cdecl _scwprintf_l(const wchar_t *_Format,_locale_t _Locale,...); 00555 _CRTIMP int __cdecl _scwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,...); 00556 _CRTIMP int __cdecl _vscwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00557 _CRTIMP int __cdecl _snwprintf_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...); 00558 _CRTIMP int __cdecl _vsnwprintf_l(wchar_t *_DstBuf,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00559 _CRTIMP int __cdecl _swprintf(wchar_t *_Dest,const wchar_t *_Format,...); 00560 _CRTIMP int __cdecl _vswprintf(wchar_t *_Dest,const wchar_t *_Format,va_list _Args); 00561 _CRTIMP int __cdecl __swprintf_l(wchar_t *_Dest,const wchar_t *_Format,_locale_t _Plocinfo,...); 00562 _CRTIMP int __cdecl __vswprintf_l(wchar_t *_Dest,const wchar_t *_Format,_locale_t _Plocinfo,va_list _Args); 00563 00564 #ifdef _CRT_NON_CONFORMING_SWPRINTFS 00565 #ifndef __cplusplus 00566 #define swprintf _swprintf 00567 #define vswprintf _vswprintf 00568 #define _swprintf_l __swprintf_l 00569 #define _vswprintf_l __vswprintf_l 00570 #endif 00571 #endif 00572 00573 _CRTIMP wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix); 00574 _CRTIMP int __cdecl _vscwprintf(const wchar_t *_Format,va_list _ArgList); 00575 _CRTIMP int __cdecl _vscwprintf_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList); 00576 int __cdecl fwscanf(FILE *_File,const wchar_t *_Format,...); 00577 _CRTIMP int __cdecl _fwscanf_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,...); 00578 int __cdecl swscanf(const wchar_t *_Src,const wchar_t *_Format,...); 00579 _CRTIMP int __cdecl _swscanf_l(const wchar_t *_Src,const wchar_t *_Format,_locale_t _Locale,...); 00580 _CRTIMP int __cdecl _snwscanf(const wchar_t *_Src,size_t _MaxCount,const wchar_t *_Format,...); 00581 _CRTIMP int __cdecl _snwscanf_l(const wchar_t *_Src,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...); 00582 int __cdecl wscanf(const wchar_t *_Format,...); 00583 _CRTIMP int __cdecl _wscanf_l(const wchar_t *_Format,_locale_t _Locale,...); 00584 _CRTIMP FILE *__cdecl _wfdopen(int _FileHandle ,const wchar_t *_Mode); 00585 _CRTIMP FILE *__cdecl _wfopen(const wchar_t *_Filename,const wchar_t *_Mode); 00586 _CRTIMP FILE *__cdecl _wfreopen(const wchar_t *_Filename,const wchar_t *_Mode,FILE *_OldFile); 00587 00588 #ifndef _CRT_WPERROR_DEFINED 00589 #define _CRT_WPERROR_DEFINED 00590 _CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg); 00591 #endif 00592 _CRTIMP FILE *__cdecl _wpopen(const wchar_t *_Command,const wchar_t *_Mode); 00593 #if !defined(NO_OLDNAMES) && !defined(wpopen) 00594 #define wpopen _wpopen 00595 #endif 00596 _CRTIMP int __cdecl _wremove(const wchar_t *_Filename); 00597 _CRTIMP wchar_t *__cdecl _wtmpnam(wchar_t *_Buffer); 00598 _CRTIMP wint_t __cdecl _fgetwc_nolock(FILE *_File); 00599 _CRTIMP wint_t __cdecl _fputwc_nolock(wchar_t _Ch,FILE *_File); 00600 _CRTIMP wint_t __cdecl _ungetwc_nolock(wint_t _Ch,FILE *_File); 00601 00602 #undef _CRT_GETPUTWCHAR_NOINLINE 00603 00604 #if !defined(__cplusplus) || defined(_CRT_GETPUTWCHAR_NOINLINE) 00605 #define getwchar() fgetwc(stdin) 00606 #define putwchar(_c) fputwc((_c),stdout) 00607 #else 00608 __CRT_INLINE wint_t __cdecl getwchar() {return (fgetwc(stdin)); } 00609 __CRT_INLINE wint_t __cdecl putwchar(wchar_t _C) {return (fputwc(_C,stdout)); } 00610 #endif 00611 00612 #define getwc(_stm) fgetwc(_stm) 00613 #define putwc(_c,_stm) fputwc(_c,_stm) 00614 #define _putwc_nolock(_c,_stm) _fputwc_nolock(_c,_stm) 00615 #define _getwc_nolock(_c) _fgetwc_nolock(_c) 00616 #endif 00617 00618 #ifndef _WSTDLIB_DEFINED 00619 #define _WSTDLIB_DEFINED 00620 00621 _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix); 00622 _CRTIMP wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix); 00623 _CRTIMP wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix); 00624 double __cdecl wcstod(const wchar_t *_Str,wchar_t **_EndPtr); 00625 _CRTIMP double __cdecl _wcstod_l(const wchar_t *_Str,wchar_t **_EndPtr,_locale_t _Locale); 00626 float __cdecl wcstof( const wchar_t *nptr, wchar_t **endptr); 00627 #if !defined __NO_ISOCEXT /* in libmingwex.a */ 00628 float __cdecl wcstof (const wchar_t * __restrict__, wchar_t ** __restrict__); 00629 long double __cdecl wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__); 00630 #endif /* __NO_ISOCEXT */ 00631 long __cdecl wcstol(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix); 00632 _CRTIMP long __cdecl _wcstol_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale); 00633 unsigned long __cdecl wcstoul(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix); 00634 _CRTIMP unsigned long __cdecl _wcstoul_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale); 00635 _CRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *_VarName); 00636 #ifndef _CRT_WSYSTEM_DEFINED 00637 #define _CRT_WSYSTEM_DEFINED 00638 _CRTIMP int __cdecl _wsystem(const wchar_t *_Command); 00639 #endif 00640 _CRTIMP double __cdecl _wtof(const wchar_t *_Str); 00641 _CRTIMP double __cdecl _wtof_l(const wchar_t *_Str,_locale_t _Locale); 00642 _CRTIMP int __cdecl _wtoi(const wchar_t *_Str); 00643 _CRTIMP int __cdecl _wtoi_l(const wchar_t *_Str,_locale_t _Locale); 00644 _CRTIMP long __cdecl _wtol(const wchar_t *_Str); 00645 _CRTIMP long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale); 00646 00647 #if _INTEGRAL_MAX_BITS >= 64 00648 __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _i64tow(__int64 _Val,wchar_t *_DstBuf,int _Radix); 00649 __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64 _Val,wchar_t *_DstBuf,int _Radix); 00650 __MINGW_EXTENSION _CRTIMP __int64 __cdecl _wtoi64(const wchar_t *_Str); 00651 __MINGW_EXTENSION _CRTIMP __int64 __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale); 00652 __MINGW_EXTENSION _CRTIMP __int64 __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix); 00653 __MINGW_EXTENSION _CRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale); 00654 __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix); 00655 __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale); 00656 #endif 00657 #endif 00658 00659 #ifndef _POSIX_ 00660 #ifndef _WSTDLIBP_DEFINED 00661 #define _WSTDLIBP_DEFINED 00662 _CRTIMP wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords); 00663 _CRTIMP void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext); 00664 #ifndef _CRT_WPERROR_DEFINED 00665 #define _CRT_WPERROR_DEFINED 00666 _CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg); 00667 #endif 00668 _CRTIMP int __cdecl _wputenv(const wchar_t *_EnvString); 00669 _CRTIMP void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath); 00670 _CRTIMP void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext); 00671 #endif 00672 #endif 00673 00674 #ifndef _WSTRING_DEFINED 00675 #define _WSTRING_DEFINED 00676 _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str); 00677 wchar_t *__cdecl wcscat(wchar_t *_Dest,const wchar_t *_Source); 00678 _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch); 00679 int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2); 00680 wchar_t *__cdecl wcscpy(wchar_t *_Dest,const wchar_t *_Source); 00681 size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control); 00682 size_t __cdecl wcslen(const wchar_t *_Str); 00683 size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount); 00684 wchar_t *__cdecl wcsncat(wchar_t *_Dest,const wchar_t *_Source,size_t _Count); 00685 int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00686 wchar_t *__cdecl wcsncpy(wchar_t *_Dest,const wchar_t *_Source,size_t _Count); 00687 _CONST_RETURN wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control); 00688 _CONST_RETURN wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch); 00689 size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control); 00690 _CONST_RETURN wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr); 00691 wchar_t *__cdecl wcstok(wchar_t *_Str,const wchar_t *_Delim); 00692 _CRTIMP wchar_t *__cdecl _wcserror(int _ErrNum); 00693 _CRTIMP wchar_t *__cdecl __wcserror(const wchar_t *_Str); 00694 _CRTIMP int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2); 00695 _CRTIMP int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00696 _CRTIMP int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00697 _CRTIMP int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00698 _CRTIMP wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount); 00699 _CRTIMP wchar_t *__cdecl _wcsrev(wchar_t *_Str); 00700 _CRTIMP wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val); 00701 _CRTIMP wchar_t *__cdecl _wcslwr(wchar_t *_String); 00702 _CRTIMP wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale); 00703 _CRTIMP wchar_t *__cdecl _wcsupr(wchar_t *_String); 00704 _CRTIMP wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale); 00705 size_t __cdecl wcsxfrm(wchar_t *_Dst,const wchar_t *_Src,size_t _MaxCount); 00706 _CRTIMP size_t __cdecl _wcsxfrm_l(wchar_t *_Dst,const wchar_t *_Src,size_t _MaxCount,_locale_t _Locale); 00707 int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2); 00708 _CRTIMP int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00709 _CRTIMP int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2); 00710 _CRTIMP int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00711 _CRTIMP int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00712 _CRTIMP int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00713 _CRTIMP int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00714 _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00715 00716 #ifndef NO_OLDNAMES 00717 _CRTIMP wchar_t *__cdecl wcsdup(const wchar_t *_Str); 00718 #define wcswcs wcsstr 00719 _CRTIMP int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2); 00720 _CRTIMP int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00721 _CRTIMP wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount); 00722 _CRTIMP wchar_t *__cdecl wcsrev(wchar_t *_Str); 00723 _CRTIMP wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val); 00724 _CRTIMP wchar_t *__cdecl wcslwr(wchar_t *_Str); 00725 _CRTIMP wchar_t *__cdecl wcsupr(wchar_t *_Str); 00726 _CRTIMP int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2); 00727 #endif 00728 #endif 00729 00730 #ifndef _TM_DEFINED 00731 #define _TM_DEFINED 00732 struct tm { 00733 int tm_sec; 00734 int tm_min; 00735 int tm_hour; 00736 int tm_mday; 00737 int tm_mon; 00738 int tm_year; 00739 int tm_wday; 00740 int tm_yday; 00741 int tm_isdst; 00742 }; 00743 #endif 00744 00745 #ifndef _WTIME_DEFINED 00746 #define _WTIME_DEFINED 00747 00748 _CRTIMP wchar_t *__cdecl _wasctime(const struct tm *_Tm); 00749 _CRTIMP wchar_t *__cdecl _wctime32(const __time32_t *_Time); 00750 size_t __cdecl wcsftime(wchar_t *_Buf,size_t _SizeInWords,const wchar_t *_Format,const struct tm *_Tm); 00751 _CRTIMP size_t __cdecl _wcsftime_l(wchar_t *_Buf,size_t _SizeInWords,const wchar_t *_Format,const struct tm *_Tm,_locale_t _Locale); 00752 _CRTIMP wchar_t *__cdecl _wstrdate(wchar_t *_Buffer); 00753 _CRTIMP wchar_t *__cdecl _wstrtime(wchar_t *_Buffer); 00754 00755 _CRTIMP errno_t __cdecl _wasctime_s(wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm); 00756 _CRTIMP errno_t __cdecl _wctime32_s(wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time); 00757 _CRTIMP errno_t __cdecl _wstrdate_s(wchar_t *_Buf,size_t _SizeInWords); 00758 _CRTIMP errno_t __cdecl _wstrtime_s(wchar_t *_Buf,size_t _SizeInWords); 00759 00760 #if _INTEGRAL_MAX_BITS >= 64 00761 _CRTIMP wchar_t *__cdecl _wctime64(const __time64_t *_Time); 00762 _CRTIMP errno_t __cdecl _wctime64_s(wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time); 00763 #endif 00764 00765 #if !defined (RC_INVOKED) && !defined (_INC_WTIME_INL) 00766 #define _INC_WTIME_INL 00767 #ifdef _USE_32BIT_TIME_T 00768 __CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime32(_Time); } 00769 #else /* !_USE_32BIT_TIME_T */ 00770 __CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime64(_Time); } 00771 #endif /* !_USE_32BIT_TIME_T */ 00772 #endif /* !defined (RC_INVOKED) && !defined (_INC_WTIME_INL) */ 00773 00774 #endif /* _WTIME_DEFINED */ 00775 00776 typedef int mbstate_t; 00777 typedef wchar_t _Wint_t; 00778 00779 wint_t __cdecl btowc(int); 00780 size_t __cdecl mbrlen(const char *_Ch,size_t _SizeInBytes,mbstate_t *_State); 00781 size_t __cdecl mbrtowc(wchar_t *_DstCh,const char *_SrcCh,size_t _SizeInBytes,mbstate_t *_State); 00782 size_t __cdecl mbsrtowcs(wchar_t *_Dest,const char **_PSrc,size_t _Count,mbstate_t *_State); 00783 size_t __cdecl wcrtomb(char *_Dest,wchar_t _Source,mbstate_t *_State); 00784 size_t __cdecl wcsrtombs(char *_Dest,const wchar_t **_PSource,size_t _Count,mbstate_t *_State); 00785 int __cdecl wctob(wint_t _WCh); 00786 00787 #ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */ 00788 wchar_t *__cdecl wmemset(wchar_t *s, wchar_t c, size_t n); 00789 _CONST_RETURN wchar_t *__cdecl wmemchr(const wchar_t *s, wchar_t c, size_t n); 00790 int wmemcmp(const wchar_t *s1, const wchar_t *s2,size_t n); 00791 wchar_t *__cdecl wmemcpy(wchar_t *s1,const wchar_t *s2,size_t n); 00792 wchar_t *__cdecl wmemmove(wchar_t *s1, const wchar_t *s2, size_t n); 00793 __MINGW_EXTENSION long long __cdecl wcstoll(const wchar_t *nptr,wchar_t **endptr, int base); 00794 __MINGW_EXTENSION unsigned long long __cdecl wcstoull(const wchar_t *nptr,wchar_t **endptr, int base); 00795 #endif /* __NO_ISOCEXT */ 00796 00797 void *__cdecl memmove(void *_Dst,const void *_Src,size_t _MaxCount); 00798 void *__cdecl memcpy(void *_Dst,const void *_Src,size_t _MaxCount); 00799 __CRT_INLINE int __cdecl fwide(FILE *_F,int _M) { (void)_F; return (_M); } 00800 __CRT_INLINE int __cdecl mbsinit(const mbstate_t *_P) { return (!_P || *_P==0); } 00801 __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); } 00802 __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); } 00803 __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)); } 00804 __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)); } 00805 __CRT_INLINE wchar_t *__cdecl wmemset(wchar_t *_S,wchar_t _C,size_t _N) { 00806 wchar_t *_Su = _S; 00807 for (;0<_N;++_Su,--_N) { 00808 *_Su = _C; 00809 } 00810 return (_S); 00811 } 00812 00813 #ifdef _MSC_VER 00814 #pragma warning(pop) 00815 #endif 00816 00817 #ifdef __cplusplus 00818 } 00819 #endif 00820 00821 #pragma pack(pop) 00822 00823 #include <sec_api/wchar_s.h> 00824 #endif Generated on Sat May 26 2012 04:28:26 for ReactOS by
1.7.6.1
|