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.
12 #pragma pack(push,_CRT_PACKING)
22 #define NULL ((void *)0)
26 #define EXIT_SUCCESS 0
27 #define EXIT_FAILURE 1
29 #ifndef _ONEXIT_T_DEFINED
30 #define _ONEXIT_T_DEFINED
32 typedef int (__cdecl
*_onexit_t
)(void);
35 #define onexit_t _onexit_t
39 #ifndef _DIV_T_DEFINED
40 #define _DIV_T_DEFINED
42 typedef struct _div_t
{
47 typedef struct _ldiv_t
{
53 #ifndef _CRT_DOUBLE_DEC
54 #define _CRT_DOUBLE_DEC
62 #define _PTR_LD(x) ((unsigned char *)(&(x)->ld))
72 #pragma push_macro("long")
79 #pragma pop_macro("long")
83 unsigned char ld12
[12];
88 #define RAND_MAX 0x7fff
91 #define MB_CUR_MAX ___mb_cur_max_func()
94 extern int __mb_cur_max
;
96 #define __mb_cur_max (*_imp____mb_cur_max)
97 extern int *_imp____mb_cur_max
;
101 extern int __mbcur_max
;
102 #define ___mb_cur_max_func() (__mb_cur_max)
104 extern int* _imp____mbcur_max
;
105 #define ___mb_cur_max_func() (*_imp____mb_cur_max)
109 #define __max(a,b) (((a) > (b)) ? (a) : (b))
110 #define __min(a,b) (((a) < (b)) ? (a) : (b))
112 #define _MAX_PATH 260
115 #define _MAX_FNAME 256
118 #define _OUT_TO_DEFAULT 0
119 #define _OUT_TO_STDERR 1
120 #define _OUT_TO_MSGBOX 2
121 #define _REPORT_ERRMODE 3
123 #define _WRITE_ABORT_MSG 0x1
124 #define _CALL_REPORTFAULT 0x2
126 #define _MAX_ENV 32767
128 typedef void (__cdecl
*_purecall_handler
)(void);
130 _CRTIMP _purecall_handler __cdecl
_set_purecall_handler(_purecall_handler _Handler
);
131 _CRTIMP _purecall_handler __cdecl
_get_purecall_handler(void);
133 typedef void (__cdecl
*_invalid_parameter_handler
)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);
134 _invalid_parameter_handler __cdecl
_set_invalid_parameter_handler(_invalid_parameter_handler _Handler
);
135 _invalid_parameter_handler __cdecl
_get_invalid_parameter_handler(void);
137 #ifndef _CRT_ERRNO_DEFINED
138 #define _CRT_ERRNO_DEFINED
139 _CRTIMP
extern int *__cdecl
_errno(void);
140 #define errno (*_errno())
141 errno_t __cdecl
_set_errno(int _Value
);
142 errno_t __cdecl
_get_errno(int *_Value
);
144 _CRTIMP
unsigned long *__cdecl
__doserrno(void);
145 #define _doserrno (*__doserrno())
146 errno_t __cdecl
_set_doserrno(unsigned long _Value
);
147 errno_t __cdecl
_get_doserrno(unsigned long *_Value
);
149 extern char *_sys_errlist
[];
150 extern int _sys_nerr
;
152 _CRTIMP
char *_sys_errlist
[1];
153 _CRTIMP
int _sys_nerr
;
155 #if (defined(_X86_) && !defined(__x86_64))
156 _CRTIMP
int *__cdecl
__p___argc(void);
157 _CRTIMP
char ***__cdecl
__p___argv(void);
158 _CRTIMP
wchar_t ***__cdecl
__p___wargv(void);
159 _CRTIMP
char ***__cdecl
__p__environ(void);
160 _CRTIMP
wchar_t ***__cdecl
__p__wenviron(void);
161 _CRTIMP
char **__cdecl
__p__pgmptr(void);
162 _CRTIMP
wchar_t **__cdecl
__p__wpgmptr(void);
168 #define __argc (*_imp____argc)
169 extern int *_imp____argc
;
174 extern char **__argv
;
176 #define __argv (*_imp____argv)
177 extern char ***_imp____argv
;
182 extern wchar_t **__wargv
;
184 #define __wargv (*_imp____wargv)
185 extern wchar_t ***_imp____wargv
;
190 extern char **environ
;
194 extern char **_environ
;
196 #define _environ (*_imp___environ)
197 extern char ***_imp___environ
;
203 extern wchar_t **_wenviron
;
205 #define _wenviron (*_imp___wenviron)
206 extern wchar_t ***_imp___wenviron
;
212 extern char *_pgmptr
;
214 #define _pgmptr (*_imp___pgmptr)
215 extern char **_imp___pgmptr
;
221 extern wchar_t *_wpgmptr
;
223 #define _wpgmptr (*_imp___wpgmptr)
224 extern wchar_t **_imp___wpgmptr
;
227 errno_t __cdecl
_get_pgmptr(char **_Value
);
228 errno_t __cdecl
_get_wpgmptr(wchar_t **_Value
);
233 #define _fmode (*_imp___fmode)
234 extern int *_imp___fmode
;
237 _CRTIMP errno_t __cdecl
_set_fmode(int _Mode
);
238 _CRTIMP errno_t __cdecl
_get_fmode(int *_PMode
);
242 extern unsigned int _osplatform
;
244 #define _osplatform (*_imp___osplatform)
245 extern unsigned int *_imp___osplatform
;
251 extern unsigned int _osver
;
253 #define _osver (*_imp___osver)
254 extern unsigned int *_imp___osver
;
260 extern unsigned int _winver
;
262 #define _winver (*_imp___winver)
263 extern unsigned int *_imp___winver
;
269 extern unsigned int _winmajor
;
271 #define _winmajor (*_imp___winmajor)
272 extern unsigned int *_imp___winmajor
;
278 extern unsigned int _winminor
;
280 #define _winminor (*_imp___winminor)
281 extern unsigned int *_imp___winminor
;
285 errno_t __cdecl
_get_osplatform(unsigned int *_Value
);
286 errno_t __cdecl
_get_osver(unsigned int *_Value
);
287 errno_t __cdecl
_get_winver(unsigned int *_Value
);
288 errno_t __cdecl
_get_winmajor(unsigned int *_Value
);
289 errno_t __cdecl
_get_winminor(unsigned int *_Value
);
292 #define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
295 template <typename _CountofType
,size_t _SizeOfArray
> char (*__countof_helper(UNALIGNED
_CountofType (&_Array
)[_SizeOfArray
]))[_SizeOfArray
];
296 #define _countof(_Array) sizeof(*__countof_helper(_Array))
301 #ifndef _CRT_TERMINATE_DEFINED
302 #define _CRT_TERMINATE_DEFINED
303 void __cdecl __MINGW_NOTHROW
exit(int _Code
) __MINGW_ATTRIB_NORETURN
;
304 _CRTIMP
void __cdecl __MINGW_NOTHROW
_exit(int _Code
) __MINGW_ATTRIB_NORETURN
;
305 #if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */
306 /* C99 function name */
307 void __cdecl
_Exit(int) __MINGW_ATTRIB_NORETURN
;
308 __CRT_INLINE __MINGW_ATTRIB_NORETURN
void __cdecl
_Exit(int status
)
312 #pragma push_macro("abort")
314 void __cdecl
__declspec(noreturn
) abort(void);
315 #pragma pop_macro("abort")
319 _CRTIMP
unsigned int __cdecl
_set_abort_behavior(unsigned int _Flags
,unsigned int _Mask
);
321 #ifndef _CRT_ABS_DEFINED
322 #define _CRT_ABS_DEFINED
323 int __cdecl
abs(int _X
);
324 long __cdecl
labs(long _X
);
327 #if _INTEGRAL_MAX_BITS >= 64
328 __int64 __cdecl
_abs64(__int64
);
330 int __cdecl
atexit(void (__cdecl
*)(void));
331 #ifndef _CRT_ATOF_DEFINED
332 #define _CRT_ATOF_DEFINED
333 double __cdecl
atof(const char *_String
);
334 double __cdecl
_atof_l(const char *_String
,_locale_t _Locale
);
336 int __cdecl
atoi(const char *_Str
);
337 _CRTIMP
int __cdecl
_atoi_l(const char *_Str
,_locale_t _Locale
);
338 long __cdecl
atol(const char *_Str
);
339 _CRTIMP
long __cdecl
_atol_l(const char *_Str
,_locale_t _Locale
);
340 #ifndef _CRT_ALGO_DEFINED
341 #define _CRT_ALGO_DEFINED
342 void *__cdecl
bsearch(const void *_Key
,const void *_Base
,size_t _NumOfElements
,size_t _SizeOfElements
,int (__cdecl
*_PtFuncCompare
)(const void *,const void *));
343 void __cdecl
qsort(void *_Base
,size_t _NumOfElements
,size_t _SizeOfElements
,int (__cdecl
*_PtFuncCompare
)(const void *,const void *));
345 unsigned short __cdecl
_byteswap_ushort(unsigned short _Short
);
346 /*unsigned long __cdecl _byteswap_ulong (unsigned long _Long); */
347 #if _INTEGRAL_MAX_BITS >= 64
348 unsigned __int64 __cdecl
_byteswap_uint64(unsigned __int64 _Int64
);
350 div_t __cdecl
div(int _Numerator
,int _Denominator
);
351 char *__cdecl
getenv(const char *_VarName
);
352 _CRTIMP
char *__cdecl
_itoa(int _Value
,char *_Dest
,int _Radix
);
353 #if _INTEGRAL_MAX_BITS >= 64
354 _CRTIMP
char *__cdecl
_i64toa(__int64 _Val
,char *_DstBuf
,int _Radix
);
355 _CRTIMP
char *__cdecl
_ui64toa(unsigned __int64 _Val
,char *_DstBuf
,int _Radix
);
356 _CRTIMP __int64 __cdecl
_atoi64(const char *_String
);
357 _CRTIMP __int64 __cdecl
_atoi64_l(const char *_String
,_locale_t _Locale
);
358 _CRTIMP __int64 __cdecl
_strtoi64(const char *_String
,char **_EndPtr
,int _Radix
);
359 _CRTIMP __int64 __cdecl
_strtoi64_l(const char *_String
,char **_EndPtr
,int _Radix
,_locale_t _Locale
);
360 _CRTIMP
unsigned __int64 __cdecl
_strtoui64(const char *_String
,char **_EndPtr
,int _Radix
);
361 _CRTIMP
unsigned __int64 __cdecl
_strtoui64_l(const char *_String
,char **_EndPtr
,int _Radix
,_locale_t _Locale
);
363 ldiv_t __cdecl
ldiv(long _Numerator
,long _Denominator
);
364 _CRTIMP
char *__cdecl
_ltoa(long _Value
,char *_Dest
,int _Radix
);
365 int __cdecl
mblen(const char *_Ch
,size_t _MaxCount
);
366 _CRTIMP
int __cdecl
_mblen_l(const char *_Ch
,size_t _MaxCount
,_locale_t _Locale
);
367 _CRTIMP
size_t __cdecl
_mbstrlen(const char *_Str
);
368 _CRTIMP
size_t __cdecl
_mbstrlen_l(const char *_Str
,_locale_t _Locale
);
369 _CRTIMP
size_t __cdecl
_mbstrnlen(const char *_Str
,size_t _MaxCount
);
370 _CRTIMP
size_t __cdecl
_mbstrnlen_l(const char *_Str
,size_t _MaxCount
,_locale_t _Locale
);
371 int __cdecl
mbtowc(wchar_t *_DstCh
,const char *_SrcCh
,size_t _SrcSizeInBytes
);
372 _CRTIMP
int __cdecl
_mbtowc_l(wchar_t *_DstCh
,const char *_SrcCh
,size_t _SrcSizeInBytes
,_locale_t _Locale
);
373 size_t __cdecl
mbstowcs(wchar_t *_Dest
,const char *_Source
,size_t _MaxCount
);
374 _CRTIMP
size_t __cdecl
_mbstowcs_l(wchar_t *_Dest
,const char *_Source
,size_t _MaxCount
,_locale_t _Locale
);
375 int __cdecl
rand(void);
376 _CRTIMP
int __cdecl
_set_error_mode(int _Mode
);
377 void __cdecl
srand(unsigned int _Seed
);
378 double __cdecl
strtod(const char *_Str
,char **_EndPtr
);
379 float __cdecl
strtof(const char *nptr
, char **endptr
);
380 #if !defined __NO_ISOCEXT /* in libmingwex.a */
381 float __cdecl
strtof (const char * __restrict__
, char ** __restrict__
);
382 long double __cdecl
strtold(const char * __restrict__
, char ** __restrict__
);
383 #endif /* __NO_ISOCEXT */
384 _CRTIMP
double __cdecl
_strtod_l(const char *_Str
,char **_EndPtr
,_locale_t _Locale
);
385 long __cdecl
strtol(const char *_Str
,char **_EndPtr
,int _Radix
);
386 _CRTIMP
long __cdecl
_strtol_l(const char *_Str
,char **_EndPtr
,int _Radix
,_locale_t _Locale
);
387 unsigned long __cdecl
strtoul(const char *_Str
,char **_EndPtr
,int _Radix
);
388 _CRTIMP
unsigned long __cdecl
_strtoul_l(const char *_Str
,char **_EndPtr
,int _Radix
,_locale_t _Locale
);
389 #ifndef _CRT_SYSTEM_DEFINED
390 #define _CRT_SYSTEM_DEFINED
391 int __cdecl
system(const char *_Command
);
393 _CRTIMP
char *__cdecl
_ultoa(unsigned long _Value
,char *_Dest
,int _Radix
);
394 int __cdecl
wctomb(char *_MbCh
,wchar_t _WCh
);
395 _CRTIMP
int __cdecl
_wctomb_l(char *_MbCh
,wchar_t _WCh
,_locale_t _Locale
);
396 size_t __cdecl
wcstombs(char *_Dest
,const wchar_t *_Source
,size_t _MaxCount
);
397 _CRTIMP
size_t __cdecl
_wcstombs_l(char *_Dest
,const wchar_t *_Source
,size_t _MaxCount
,_locale_t _Locale
);
399 #ifndef _CRT_ALLOCATION_DEFINED
400 #define _CRT_ALLOCATION_DEFINED
401 void *__cdecl
calloc(size_t _NumOfElements
,size_t _SizeOfElements
);
402 void __cdecl
free(void *_Memory
);
403 void *__cdecl
malloc(size_t _Size
);
404 void *__cdecl
realloc(void *_Memory
,size_t _NewSize
);
405 _CRTIMP
void *__cdecl
_recalloc(void *_Memory
,size_t _Count
,size_t _Size
);
406 //_CRTIMP void __cdecl _aligned_free(void *_Memory);
407 //_CRTIMP void *__cdecl _aligned_malloc(size_t _Size,size_t _Alignment);
408 _CRTIMP
void *__cdecl
_aligned_offset_malloc(size_t _Size
,size_t _Alignment
,size_t _Offset
);
409 _CRTIMP
void *__cdecl
_aligned_realloc(void *_Memory
,size_t _Size
,size_t _Alignment
);
410 _CRTIMP
void *__cdecl
_aligned_recalloc(void *_Memory
,size_t _Count
,size_t _Size
,size_t _Alignment
);
411 _CRTIMP
void *__cdecl
_aligned_offset_realloc(void *_Memory
,size_t _Size
,size_t _Alignment
,size_t _Offset
);
412 _CRTIMP
void *__cdecl
_aligned_offset_recalloc(void *_Memory
,size_t _Count
,size_t _Size
,size_t _Alignment
,size_t _Offset
);
415 #ifndef _WSTDLIB_DEFINED
416 #define _WSTDLIB_DEFINED
418 _CRTIMP
wchar_t *__cdecl
_itow(int _Value
,wchar_t *_Dest
,int _Radix
);
419 _CRTIMP
wchar_t *__cdecl
_ltow(long _Value
,wchar_t *_Dest
,int _Radix
);
420 _CRTIMP
wchar_t *__cdecl
_ultow(unsigned long _Value
,wchar_t *_Dest
,int _Radix
);
421 double __cdecl
wcstod(const wchar_t *_Str
,wchar_t **_EndPtr
);
422 float __cdecl
wcstof(const wchar_t *nptr
, wchar_t **endptr
);
423 #if !defined __NO_ISOCEXT /* in libmingwex.a */
424 float __cdecl
wcstof( const wchar_t * __restrict__
, wchar_t ** __restrict__
);
425 long double __cdecl
wcstold(const wchar_t * __restrict__
, wchar_t ** __restrict__
);
426 #endif /* __NO_ISOCEXT */
427 _CRTIMP
double __cdecl
_wcstod_l(const wchar_t *_Str
,wchar_t **_EndPtr
,_locale_t _Locale
);
428 long __cdecl
wcstol(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
429 _CRTIMP
long __cdecl
_wcstol_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
430 unsigned long __cdecl
wcstoul(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
431 _CRTIMP
unsigned long __cdecl
_wcstoul_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
432 _CRTIMP
wchar_t *__cdecl
_wgetenv(const wchar_t *_VarName
);
433 #ifndef _CRT_WSYSTEM_DEFINED
434 #define _CRT_WSYSTEM_DEFINED
435 _CRTIMP
int __cdecl
_wsystem(const wchar_t *_Command
);
437 _CRTIMP
double __cdecl
_wtof(const wchar_t *_Str
);
438 _CRTIMP
double __cdecl
_wtof_l(const wchar_t *_Str
,_locale_t _Locale
);
439 _CRTIMP
int __cdecl
_wtoi(const wchar_t *_Str
);
440 _CRTIMP
int __cdecl
_wtoi_l(const wchar_t *_Str
,_locale_t _Locale
);
441 _CRTIMP
long __cdecl
_wtol(const wchar_t *_Str
);
442 _CRTIMP
long __cdecl
_wtol_l(const wchar_t *_Str
,_locale_t _Locale
);
444 #if _INTEGRAL_MAX_BITS >= 64
445 _CRTIMP
wchar_t *__cdecl
_i64tow(__int64 _Val
,wchar_t *_DstBuf
,int _Radix
);
446 _CRTIMP
wchar_t *__cdecl
_ui64tow(unsigned __int64 _Val
,wchar_t *_DstBuf
,int _Radix
);
447 _CRTIMP __int64 __cdecl
_wtoi64(const wchar_t *_Str
);
448 _CRTIMP __int64 __cdecl
_wtoi64_l(const wchar_t *_Str
,_locale_t _Locale
);
449 _CRTIMP __int64 __cdecl
_wcstoi64(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
450 _CRTIMP __int64 __cdecl
_wcstoi64_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
451 _CRTIMP
unsigned __int64 __cdecl
_wcstoui64(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
);
452 _CRTIMP
unsigned __int64 __cdecl
_wcstoui64_l(const wchar_t *_Str
,wchar_t **_EndPtr
,int _Radix
,_locale_t _Locale
);
457 #define _CVTBUFSIZE (309+40)
458 _CRTIMP
char *__cdecl
_fullpath(char *_FullPath
,const char *_Path
,size_t _SizeInBytes
);
459 _CRTIMP
char *__cdecl
_ecvt(double _Val
,int _NumOfDigits
,int *_PtDec
,int *_PtSign
);
460 _CRTIMP
char *__cdecl
_fcvt(double _Val
,int _NumOfDec
,int *_PtDec
,int *_PtSign
);
461 _CRTIMP
char *__cdecl
_gcvt(double _Val
,int _NumOfDigits
,char *_DstBuf
);
462 _CRTIMP
int __cdecl
_atodbl(_CRT_DOUBLE
*_Result
,char *_Str
);
463 _CRTIMP
int __cdecl
_atoldbl(_LDOUBLE
*_Result
,char *_Str
);
464 _CRTIMP
int __cdecl
_atoflt(_CRT_FLOAT
*_Result
,char *_Str
);
465 _CRTIMP
int __cdecl
_atodbl_l(_CRT_DOUBLE
*_Result
,char *_Str
,_locale_t _Locale
);
466 _CRTIMP
int __cdecl
_atoldbl_l(_LDOUBLE
*_Result
,char *_Str
,_locale_t _Locale
);
467 _CRTIMP
int __cdecl
_atoflt_l(_CRT_FLOAT
*_Result
,char *_Str
,_locale_t _Locale
);
468 unsigned long __cdecl
_lrotl(unsigned long _Val
,int _Shift
);
469 unsigned long __cdecl
_lrotr(unsigned long _Val
,int _Shift
);
470 _CRTIMP
void __cdecl
_makepath(char *_Path
,const char *_Drive
,const char *_Dir
,const char *_Filename
,const char *_Ext
);
471 _onexit_t __cdecl
_onexit(_onexit_t _Func
);
473 #ifndef _CRT_PERROR_DEFINED
474 #define _CRT_PERROR_DEFINED
475 void __cdecl
perror(const char *_ErrMsg
);
477 _CRTIMP
int __cdecl
_putenv(const char *_EnvString
);
478 unsigned int __cdecl
_rotl(unsigned int _Val
,int _Shift
);
479 #if _INTEGRAL_MAX_BITS >= 64
480 unsigned __int64 __cdecl
_rotl64(unsigned __int64 _Val
,int _Shift
);
482 unsigned int __cdecl
_rotr(unsigned int _Val
,int _Shift
);
483 #if _INTEGRAL_MAX_BITS >= 64
484 unsigned __int64 __cdecl
_rotr64(unsigned __int64 _Val
,int _Shift
);
486 _CRTIMP
void __cdecl
_searchenv(const char *_Filename
,const char *_EnvVar
,char *_ResultPath
);
487 _CRTIMP
void __cdecl
_splitpath(const char *_FullPath
,char *_Drive
,char *_Dir
,char *_Filename
,char *_Ext
);
488 _CRTIMP
void __cdecl
_swab(char *_Buf1
,char *_Buf2
,int _SizeInBytes
);
490 #ifndef _WSTDLIBP_DEFINED
491 #define _WSTDLIBP_DEFINED
492 _CRTIMP
wchar_t *__cdecl
_wfullpath(wchar_t *_FullPath
,const wchar_t *_Path
,size_t _SizeInWords
);
493 _CRTIMP
void __cdecl
_wmakepath(wchar_t *_ResultPath
,const wchar_t *_Drive
,const wchar_t *_Dir
,const wchar_t *_Filename
,const wchar_t *_Ext
);
494 #ifndef _CRT_WPERROR_DEFINED
495 #define _CRT_WPERROR_DEFINED
496 _CRTIMP
void __cdecl
_wperror(const wchar_t *_ErrMsg
);
498 _CRTIMP
int __cdecl
_wputenv(const wchar_t *_EnvString
);
499 _CRTIMP
void __cdecl
_wsearchenv(const wchar_t *_Filename
,const wchar_t *_EnvVar
,wchar_t *_ResultPath
);
500 _CRTIMP
void __cdecl
_wsplitpath(const wchar_t *_FullPath
,wchar_t *_Drive
,wchar_t *_Dir
,wchar_t *_Filename
,wchar_t *_Ext
);
503 _CRTIMP
void __cdecl
_beep(unsigned _Frequency
,unsigned _Duration
) __MINGW_ATTRIB_DEPRECATED
;
504 /* Not to be confused with _set_error_mode (int). */
505 _CRTIMP
void __cdecl
_seterrormode(int _Mode
) __MINGW_ATTRIB_DEPRECATED
;
506 _CRTIMP
void __cdecl
_sleep(unsigned long _Duration
) __MINGW_ATTRIB_DEPRECATED
;
515 #define max(a,b) (((a) > (b)) ? (a) : (b))
518 #define min(a,b) (((a) < (b)) ? (a) : (b))
524 #define sys_errlist _sys_errlist
525 #define sys_nerr _sys_nerr
526 #define environ _environ
527 char *__cdecl
ecvt(double _Val
,int _NumOfDigits
,int *_PtDec
,int *_PtSign
);
528 char *__cdecl
fcvt(double _Val
,int _NumOfDec
,int *_PtDec
,int *_PtSign
);
529 char *__cdecl
gcvt(double _Val
,int _NumOfDigits
,char *_DstBuf
);
530 char *__cdecl
itoa(int _Val
,char *_DstBuf
,int _Radix
);
531 char *__cdecl
ltoa(long _Val
,char *_DstBuf
,int _Radix
);
532 int __cdecl
putenv(const char *_EnvString
);
533 void __cdecl
swab(char *_Buf1
,char *_Buf2
,int _SizeInBytes
);
534 char *__cdecl
ultoa(unsigned long _Val
,char *_Dstbuf
,int _Radix
);
535 onexit_t __cdecl
onexit(onexit_t _Func
);
539 #if !defined __NO_ISOCEXT /* externs in static libmingwex.a */
541 typedef struct { long long quot
, rem
; } lldiv_t
;
543 lldiv_t __cdecl
lldiv(long long, long long);
545 __CRT_INLINE
long long __cdecl
llabs(long long _j
) { return (_j
>= 0 ? _j
: -_j
); }
547 long long __cdecl
strtoll(const char* __restrict__
, char** __restrict
, int);
548 unsigned long long __cdecl
strtoull(const char* __restrict__
, char** __restrict__
, int);
550 /* these are stubs for MS _i64 versions */
551 long long __cdecl
atoll (const char *);
553 #ifndef __STRICT_ANSI__
554 long long __cdecl
wtoll (const wchar_t *);
555 char *__cdecl
lltoa (long long, char *, int);
556 char *__cdecl
ulltoa (unsigned long long , char *, int);
557 wchar_t *__cdecl
lltow (long long, wchar_t *, int);
558 wchar_t *__cdecl
ulltow (unsigned long long, wchar_t *, int);
560 /* __CRT_INLINE using non-ansi functions */
561 __CRT_INLINE
long long __cdecl
atoll (const char * _c
) { return _atoi64 (_c
); }
562 __CRT_INLINE
char *__cdecl
lltoa (long long _n
, char * _c
, int _i
) { return _i64toa (_n
, _c
, _i
); }
563 __CRT_INLINE
char *__cdecl
ulltoa (unsigned long long _n
, char * _c
, int _i
) { return _ui64toa (_n
, _c
, _i
); }
564 __CRT_INLINE
long long __cdecl
wtoll (const wchar_t * _w
) { return _wtoi64 (_w
); }
565 __CRT_INLINE
wchar_t *__cdecl
lltow (long long _n
, wchar_t * _w
, int _i
) { return _i64tow (_n
, _w
, _i
); }
566 __CRT_INLINE
wchar_t *__cdecl
ulltow (unsigned long long _n
, wchar_t * _w
, int _i
) { return _ui64tow (_n
, _w
, _i
); }
567 #endif /* (__STRICT_ANSI__) */
569 #endif /* !__NO_ISOCEXT */
577 #include <sec_api/stdlib_s.h>