ReactOS 0.4.16-dev-2104-gb84fa49
stdlib.h
Go to the documentation of this file.
1/*
2 * Standard library definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_STDLIB_H
9#define __WINE_STDLIB_H
10
11#include <corecrt_malloc.h>
12#include <corecrt_wstdlib.h>
13#include <limits.h>
14
15#include <pshpack8.h>
16
17typedef struct
18{
19 float f;
21
22typedef struct
23{
24 double x;
26
27typedef struct
28{
29 unsigned char ld[10];
30} _LDOUBLE;
31
32#define EXIT_SUCCESS 0
33#define EXIT_FAILURE -1
34#define RAND_MAX 0x7FFF
35
36#ifndef _MAX_PATH
37#define _MAX_DRIVE 3
38#define _MAX_FNAME 256
39#define _MAX_DIR _MAX_FNAME
40#define _MAX_EXT _MAX_FNAME
41#define _MAX_PATH 260
42#endif
43
44/* Make the secure string functions (names end in "_s") truncate their output */
45#define _TRUNCATE ((size_t)-1)
46
47typedef struct _div_t {
48 int quot;
49 int rem;
51
52typedef struct _ldiv_t {
56
57typedef struct _lldiv_t {
61
62
63#define _countof(x) (sizeof(x)/sizeof((x)[0]))
64
65#define __max(a,b) (((a) > (b)) ? (a) : (b))
66#define __min(a,b) (((a) < (b)) ? (a) : (b))
67#ifndef __cplusplus
68#define max(a,b) (((a) > (b)) ? (a) : (b))
69#define min(a,b) (((a) < (b)) ? (a) : (b))
70#endif
71
72/* _set_error_mode() constants */
73#define _OUT_TO_DEFAULT 0
74#define _OUT_TO_STDERR 1
75#define _OUT_TO_MSGBOX 2
76#define _REPORT_ERRMODE 3
77
78/* _set_abort_behavior codes */
79#define _WRITE_ABORT_MSG 1
80#define _CALL_REPORTFAULT 2
81
82#ifdef __cplusplus
83extern "C" {
84#endif
85
86#if defined(__i386__) || defined(_UCRT)
87
88_ACRTIMP unsigned int* __cdecl __p__osver(void);
89_ACRTIMP unsigned int* __cdecl __p__winver(void);
90_ACRTIMP unsigned int* __cdecl __p__winmajor(void);
91_ACRTIMP unsigned int* __cdecl __p__winminor(void);
92_ACRTIMP int* __cdecl __p___argc(void);
93_ACRTIMP char*** __cdecl __p___argv(void);
94_ACRTIMP wchar_t*** __cdecl __p___wargv(void);
95_ACRTIMP char*** __cdecl __p__environ(void);
96_ACRTIMP wchar_t*** __cdecl __p__wenviron(void);
97_ACRTIMP int* __cdecl __p__fmode(void);
98#define _osver (*__p__osver())
99#define _winver (*__p__winver())
100#define _winmajor (*__p__winmajor())
101#define _winminor (*__p__winminor())
102#define __argc (*__p___argc())
103#define __argv (*__p___argv())
104#define __wargv (*__p___wargv())
105#define _environ (*__p__environ())
106#define _wenviron (*__p__wenviron())
107#define _fmode (*__p__fmode())
108
109#else /* __i386__ */
110
111extern unsigned int _osver;
112extern unsigned int _winver;
113extern unsigned int _winmajor;
114extern unsigned int _winminor;
115extern int __argc;
116extern char **__argv;
117extern wchar_t **__wargv;
118extern char **_environ;
119extern wchar_t **_wenviron;
120extern unsigned int _fmode;
121
122#endif /* __i386__ */
123
126#define __mb_cur_max ___mb_cur_max_func()
127#define MB_CUR_MAX ___mb_cur_max_func()
129#define _doserrno (*__doserrno())
130_ACRTIMP int* __cdecl _errno(void);
131#define errno (*_errno())
132_ACRTIMP int* __cdecl __sys_nerr(void);
133#define _sys_nerr (*__sys_nerr())
134
135/* FIXME: We need functions to access these:
136 * int _sys_nerr;
137 * char** _sys_errlist;
138 */
139
144
147
148#ifndef _CRT_ONEXIT_T_DEFINED
149#define _CRT_ONEXIT_T_DEFINED
151#endif
152
153
158_ACRTIMP __int64 __cdecl _atoi64(const char*);
160_ACRTIMP void __cdecl _beep(unsigned int,unsigned int);
161_ACRTIMP unsigned short __cdecl _byteswap_ushort(unsigned short);
164_ACRTIMP char* __cdecl _ecvt(double,int,int*,int*);
165_ACRTIMP char* __cdecl _fcvt(double,int,int*,int*);
166_ACRTIMP char* __cdecl _fullpath(char*,const char*,size_t);
167_ACRTIMP char* __cdecl _gcvt(double,int,char*);
168_ACRTIMP errno_t __cdecl _gcvt_s(char*, size_t, double, int);
169_ACRTIMP char* __cdecl _i64toa(__int64,char*,int);
170_ACRTIMP errno_t __cdecl _i64toa_s(__int64, char*, size_t, int);
171_ACRTIMP char* __cdecl _itoa(int,char*,int);
172_ACRTIMP errno_t __cdecl _itoa_s(int,char*,size_t,int);
173_ACRTIMP char* __cdecl _ltoa(__msvcrt_long,char*,int);
174_ACRTIMP errno_t __cdecl _ltoa_s(__msvcrt_long, char*, size_t, int);
175#ifndef _lrotl
177#endif
178#ifndef _lrotr
180#endif
181_ACRTIMP void __cdecl _makepath(char*,const char*,const char*,const char*,const char*);
182_ACRTIMP int __cdecl _makepath_s(char*,size_t,const char*,const char*,const char*,const char*);
183_ACRTIMP size_t __cdecl _mbstrlen(const char*);
185_ACRTIMP int __cdecl _putenv(const char*);
186_ACRTIMP errno_t __cdecl _putenv_s(const char*,const char*);
187#ifndef _rotl
188_ACRTIMP unsigned int __cdecl _rotl(unsigned int,int);
189#endif
190#ifndef _rotr
191_ACRTIMP unsigned int __cdecl _rotr(unsigned int,int);
192#endif
193_ACRTIMP void __cdecl _searchenv(const char*,const char*,char*);
197_ACRTIMP void __cdecl _splitpath(const char*,char*,char*,char*,char*);
198_ACRTIMP errno_t __cdecl _splitpath_s(const char*,char*,size_t,char*,size_t,char*,size_t,char*,size_t);
199_ACRTIMP void __cdecl _swab(char*,char*,int);
200_ACRTIMP char* __cdecl _ui64toa(unsigned __int64,char*,int);
201_ACRTIMP errno_t __cdecl _ui64toa_s(unsigned __int64,char*,size_t,int);
202_ACRTIMP char* __cdecl _ultoa(__msvcrt_ulong,char*,int);
204
208_ACRTIMP int __cdecl abs(int);
209extern int __cdecl atexit(void (__cdecl *)(void));
210_ACRTIMP double __cdecl atof(const char*);
211_ACRTIMP int __cdecl atoi(const char*);
212_ACRTIMP int __cdecl _atoi_l(const char*,_locale_t);
214_ACRTIMP __int64 __cdecl atoll(const char*);
215#ifndef __i386__
216_ACRTIMP div_t __cdecl div(int,int);
218#endif
221_ACRTIMP char* __cdecl getenv(const char*);
222_ACRTIMP errno_t __cdecl getenv_s(size_t*,char*,size_t,const char*);
225_ACRTIMP int __cdecl mblen(const char*,size_t);
226_ACRTIMP void __cdecl perror(const char*);
227_ACRTIMP int __cdecl rand(void);
228_ACRTIMP errno_t __cdecl rand_s(unsigned int*);
229_ACRTIMP void __cdecl srand(unsigned int);
230_ACRTIMP float __cdecl strtof(const char*,char**);
231_ACRTIMP float __cdecl _strtof_l(const char*,char**,_locale_t);
232_ACRTIMP double __cdecl strtod(const char*,char**);
233_ACRTIMP double __cdecl _strtod_l(const char*,char**,_locale_t);
234#if defined(__GNUC__) || _MSVCR_VER < 120
235static inline long double strtold(const char *string, char **endptr) { return strtod(string, endptr); }
236static inline long double _strtold_l(const char *string, char **endptr, _locale_t locale) { return _strtod_l(string, endptr, locale); }
237#else
238_ACRTIMP long double __cdecl strtold(const char*,char**);
239_ACRTIMP long double __cdecl _strtold_l(const char*,char**,_locale_t);
240#endif
241_ACRTIMP __msvcrt_long __cdecl strtol(const char*,char**,int);
242_ACRTIMP __msvcrt_ulong __cdecl strtoul(const char*,char**,int);
243_ACRTIMP __int64 __cdecl _strtoll_l(const char*,char**,int,_locale_t);
244_ACRTIMP unsigned __int64 __cdecl _strtoull_l(const char*,char**,int,_locale_t);
245_ACRTIMP __int64 __cdecl _strtoi64(const char*,char**,int);
246_ACRTIMP __int64 __cdecl _strtoi64_l(const char*,char**,int,_locale_t);
247_ACRTIMP unsigned __int64 __cdecl _strtoui64(const char*,char**,int);
248_ACRTIMP unsigned __int64 __cdecl _strtoui64_l(const char*,char**,int,_locale_t);
249_ACRTIMP int __cdecl system(const char*);
250_ACRTIMP void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
251_ACRTIMP void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
252_ACRTIMP void __cdecl qsort_s(void*,size_t,size_t,int (__cdecl *)(void*,const void*,const void*),void*);
253_ACRTIMP unsigned int __cdecl _set_abort_behavior(unsigned int flags, unsigned int mask);
254
258
259typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t*, const wchar_t*, const wchar_t*, unsigned, uintptr_t);
264void __cdecl _invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file,
265 unsigned int line, uintptr_t arg);
266
267#ifdef __cplusplus
268extern "C++" {
269
270template <size_t size>
271inline errno_t getenv_s(size_t *ret, char (&buf)[size], const char *var)
272{
273 return getenv_s(ret, buf, size, var);
274}
275
276inline long abs(long const x) throw() { return labs(x); }
277inline long long abs(long long const x) throw() { return llabs(x); }
278
279} /* extern "C++" */
280
281}
282#endif
283
284
285#define environ _environ
286#define onexit_t _onexit_t
287
288static inline char* ecvt(double value, int ndigit, int* decpt, int* sign) { return _ecvt(value, ndigit, decpt, sign); }
289static inline char* fcvt(double value, int ndigit, int* decpt, int* sign) { return _fcvt(value, ndigit, decpt, sign); }
290static inline char* gcvt(double value, int ndigit, char* buf) { return _gcvt(value, ndigit, buf); }
291static inline char* itoa(int value, char* str, int radix) { return _itoa(value, str, radix); }
292static inline char* ltoa(__msvcrt_long value, char* str, int radix) { return _ltoa(value, str, radix); }
293static inline _onexit_t onexit(_onexit_t func) { return _onexit(func); }
294static inline int putenv(const char* str) { return _putenv(str); }
295static inline __int64 strtoll(const char *ptr, char **endptr, int base) { return _strtoi64(ptr, endptr, base); }
296static inline unsigned __int64 __cdecl strtoull(const char *ptr, char **endptr, int base) { return _strtoui64(ptr, endptr, base); }
297static inline void swab(char* src, char* dst, int len) { _swab(src, dst, len); }
298static inline char* ultoa(__msvcrt_ulong value, char* str, int radix) { return _ultoa(value, str, radix); }
299
300#ifndef __REACTOS__
301#ifdef __i386__
302static inline div_t __wine_msvcrt_div(int num, int denom)
303{
304 extern unsigned __int64 div(int,int);
305 div_t ret;
306 unsigned __int64 res = div(num,denom);
307 ret.quot = (int)res;
308 ret.rem = (int)(res >> 32);
309 return ret;
310}
311static inline ldiv_t __wine_msvcrt_ldiv(__msvcrt_long num, __msvcrt_long denom)
312{
313 extern unsigned __int64 ldiv(__msvcrt_long,__msvcrt_long);
314 ldiv_t ret;
315 unsigned __int64 res = ldiv(num,denom);
316 ret.quot = (__msvcrt_long)res;
317 ret.rem = (__msvcrt_long)(res >> 32);
318 return ret;
319}
320#define div(num,denom) __wine_msvcrt_div(num,denom)
321#define ldiv(num,denom) __wine_msvcrt_ldiv(num,denom)
322#endif
323#endif /* !__REACTOS__ */
324
325#include <poppack.h>
326
327#endif /* __WINE_STDLIB_H */
Definition: _locale.h:75
unsigned int *CDECL __p__osver(void)
Definition: data.c:299
wchar_t ***CDECL __p__wenviron(void)
Definition: data.c:347
int *CDECL __p__fmode(void)
Definition: data.c:269
unsigned int *CDECL __p__winver(void)
Definition: data.c:314
unsigned int *CDECL __p__winminor(void)
Definition: data.c:309
int *CDECL __p___argc(void)
Definition: data.c:227
wchar_t ***CDECL __p___wargv(void)
Definition: data.c:334
char ***CDECL __p___argv(void)
Definition: data.c:329
char ***CDECL __p__environ(void)
Definition: data.c:339
unsigned int *CDECL __p__winmajor(void)
Definition: data.c:304
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
unsigned int uintptr_t
Definition: corecrt.h:185
#define __int64
Definition: corecrt.h:72
#define DECLSPEC_NORETURN
Definition: corecrt.h:131
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
_ACRTIMP DECLSPEC_NORETURN void __cdecl abort(void)
Aborts the program.
Definition: exit.c:252
_ACRTIMP DECLSPEC_NORETURN void __cdecl _exit(int)
Definition: exit.c:187
_ACRTIMP int __cdecl system(const char *)
Definition: process.c:1297
static long double strtold(const char *string, char **endptr)
Definition: stdlib.h:235
int(__cdecl * _onexit_t)(void)
Definition: stdlib.h:150
_ACRTIMP errno_t __cdecl _ltoa_s(__msvcrt_long, char *, size_t, int)
Definition: string.c:2071
_ACRTIMP float __cdecl _strtof_l(const char *, char **, _locale_t)
Definition: strtod.cpp:63
_ACRTIMP unsigned short __cdecl _byteswap_ushort(unsigned short)
Definition: intrin_arm.h:42
_ACRTIMP int *__cdecl __sys_nerr(void)
Definition: syserr.cpp:142
_ACRTIMP __msvcrt_long __cdecl strtol(const char *, char **, int)
Definition: string.c:1833
_ACRTIMP int __cdecl _atoflt_l(_CRT_FLOAT *, char *, _locale_t)
Definition: string.c:1122
_ACRTIMP int __cdecl mblen(const char *, size_t)
Definition: mbcs.c:3087
_ACRTIMP errno_t __cdecl _set_doserrno(int)
Definition: errno.c:264
static _onexit_t onexit(_onexit_t func)
Definition: stdlib.h:293
_ACRTIMP int __cdecl _makepath_s(char *, size_t, const char *, const char *, const char *, const char *)
Definition: dir.c:1404
_ACRTIMP unsigned __int64 __cdecl _strtoull_l(const char *, char **, int, _locale_t)
Definition: strtox.cpp:210
_ACRTIMP lldiv_t __cdecl lldiv(__int64, __int64)
_ACRTIMP float __cdecl strtof(const char *, char **)
Definition: strtod.cpp:55
_ACRTIMP __msvcrt_long __cdecl labs(__msvcrt_long)
Definition: math.c:680
_ACRTIMP void __cdecl _searchenv(const char *, const char *, char *)
Definition: dir.c:1702
char ** __argv
Definition: getargs.c:18
_ACRTIMP __msvcrt_long __cdecl atol(const char *)
Definition: string.c:1782
_ACRTIMP __int64 __cdecl _strtoll_l(const char *, char **, int, _locale_t)
Definition: strtox.cpp:149
unsigned int _winminor
Definition: environ.c:12
_ACRTIMP int __cdecl _atoldbl(_LDOUBLE *, char *)
Definition: string.c:1584
unsigned int _winmajor
Definition: environ.c:13
_ACRTIMP void __cdecl _sleep(__msvcrt_ulong)
Definition: misc.c:85
_ACRTIMP errno_t __cdecl _get_errno(int *)
Definition: errno.c:231
struct _ldiv_t ldiv_t
_ACRTIMP __int64 __cdecl llabs(__int64)
_ACRTIMP __int64 __cdecl _strtoi64(const char *, char **, int)
Definition: string.c:1689
static char * ultoa(__msvcrt_ulong value, char *str, int radix)
Definition: stdlib.h:298
static char * itoa(int value, char *str, int radix)
Definition: stdlib.h:291
_ACRTIMP int __cdecl _putenv(const char *)
Definition: environ.c:362
_ACRTIMP char *__cdecl _gcvt(double, int, char *)
Definition: math.c:2008
_ACRTIMP _purecall_handler __cdecl _get_purecall_handler(void)
_ACRTIMP int __cdecl atoi(const char *)
Definition: string.c:1715
_ACRTIMP void __cdecl _swab(char *, char *, int)
Definition: string.c:338
_ACRTIMP char *__cdecl getenv(const char *)
Definition: environ.c:227
_ACRTIMP void __cdecl qsort(void *, size_t, size_t, int(__cdecl *)(const void *, const void *))
_ACRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler)
Definition: purecall.c:9
_ACRTIMP int __cdecl rand(void)
Definition: misc.c:59
static __int64 strtoll(const char *ptr, char **endptr, int base)
Definition: stdlib.h:295
_ACRTIMP int __cdecl _set_error_mode(int)
Definition: exit.c:515
int __argc
Definition: getargs.c:21
_ACRTIMP int __cdecl _atoflt(_CRT_FLOAT *, char *)
Definition: string.c:1139
_ACRTIMP errno_t __cdecl _set_fmode(int)
Definition: data.c:274
_ACRTIMP _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_handler(_invalid_parameter_handler)
_ACRTIMP _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void)
wchar_t ** _wenviron
Definition: environ.c:23
_ACRTIMP char *__cdecl _ui64toa(unsigned __int64, char *, int)
Definition: string.c:2175
void(__cdecl * _invalid_parameter_handler)(const wchar_t *, const wchar_t *, const wchar_t *, unsigned, uintptr_t)
Definition: stdlib.h:259
void __cdecl _invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t arg)
Definition: errno.c:461
_ACRTIMP int __cdecl _atoi_l(const char *, _locale_t)
Definition: string.c:1697
static char * ecvt(double value, int ndigit, int *decpt, int *sign)
Definition: stdlib.h:288
_ACRTIMP __msvcrt_ulong __cdecl strtoul(const char *, char **, int)
Definition: string.c:1859
_ACRTIMP unsigned int __cdecl _rotr(unsigned int, int)
Definition: rot.c:57
static long double _strtold_l(const char *string, char **endptr, _locale_t locale)
Definition: stdlib.h:236
_ACRTIMP int __cdecl _atodbl_l(_CRT_DOUBLE *, char *, _locale_t)
Definition: string.c:1147
_ACRTIMP unsigned int __cdecl _rotl(unsigned int, int)
Definition: rot.c:43
static char * ltoa(__msvcrt_long value, char *str, int radix)
Definition: stdlib.h:292
struct _lldiv_t lldiv_t
_ACRTIMP void __cdecl _beep(unsigned int, unsigned int)
Definition: misc.c:41
_ACRTIMP errno_t __cdecl _get_fmode(int *)
Definition: data.c:287
_ACRTIMP double __cdecl _strtod_l(const char *, char **, _locale_t)
Definition: string.c:1064
unsigned int _osver
Definition: environ.c:11
_ACRTIMP DECLSPEC_NORETURN void __cdecl _Exit(int)
Definition: process.h:60
_ACRTIMP _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler)
_ACRTIMP errno_t __cdecl getenv_s(size_t *, char *, size_t, const char *)
Definition: environ.c:507
_ACRTIMP int __cdecl ___mb_cur_max_func(void)
Definition: mbcs.c:197
_ACRTIMP errno_t __cdecl _ui64toa_s(unsigned __int64, char *, size_t, int)
Definition: string.c:2331
_ACRTIMP __int64 __cdecl _strtoi64_l(const char *, char **, int, _locale_t)
Definition: string.c:1617
_ACRTIMP errno_t __cdecl _set_errno(int)
Definition: errno.c:255
_ACRTIMP void __cdecl srand(unsigned int)
Definition: misc.c:50
_ACRTIMP char *__cdecl _ecvt(double, int, int *, int *)
Definition: math.c:1748
_ACRTIMP void __cdecl _seterrormode(int)
Definition: errno.c:453
_ACRTIMP void __cdecl _splitpath(const char *, char *, char *, char *, char *)
Definition: dir.c:1112
static char * fcvt(double value, int ndigit, int *decpt, int *sign)
Definition: stdlib.h:289
_ACRTIMP div_t __cdecl div(int, int)
Definition: math.c:2081
_ACRTIMP unsigned __int64 __cdecl _strtoui64_l(const char *, char **, int, _locale_t)
Definition: string.c:1869
_ACRTIMP _onexit_t __cdecl _onexit(_onexit_t)
Definition: exit.c:347
struct _div_t div_t
_ACRTIMP errno_t __cdecl _gcvt_s(char *, size_t, double, int)
Definition: math.c:2027
_ACRTIMP errno_t __cdecl _get_doserrno(int *)
Definition: errno.c:243
_ACRTIMP char *__cdecl _i64toa(__int64, char *, int)
Definition: string.c:2247
_ACRTIMP void __cdecl perror(const char *)
Definition: errno.c:337
unsigned int _winver
Definition: environ.c:14
_ACRTIMP void __cdecl qsort_s(void *, size_t, size_t, int(__cdecl *)(void *, const void *, const void *), void *)
_ACRTIMP _invalid_parameter_handler __cdecl _get_thread_local_invalid_parameter_handler(void)
_ACRTIMP errno_t __cdecl _ultoa_s(__msvcrt_ulong, char *, size_t, int)
Definition: string.c:2408
_ACRTIMP __msvcrt_ulong __cdecl _byteswap_ulong(__msvcrt_ulong)
_ACRTIMP errno_t __cdecl rand_s(unsigned int *)
Definition: misc.c:72
unsigned int _fmode
Definition: fmode.c:4
_ACRTIMP unsigned int __cdecl _set_abort_behavior(unsigned int flags, unsigned int mask)
Specifies the behavior of the abort() function.
_ACRTIMP __msvcrt_ulong *__cdecl __doserrno(void)
Definition: errno.c:223
char ** _environ
Definition: environ.c:22
static int putenv(const char *str)
Definition: stdlib.h:294
_ACRTIMP char *__cdecl _fullpath(char *, const char *, size_t)
Definition: dir.c:1272
void(__cdecl * _purecall_handler)(void)
Definition: stdlib.h:255
static char * gcvt(double value, int ndigit, char *buf)
Definition: stdlib.h:290
_ACRTIMP unsigned __int64 __cdecl _strtoui64(const char *, char **, int)
Definition: string.c:1935
int __cdecl atexit(void(__cdecl *)(void))
Definition: atonexit.c:97
_ACRTIMP int *__cdecl _errno(void)
Definition: errno.c:215
_ACRTIMP int __cdecl ___mb_cur_max_l_func(_locale_t)
Definition: initctype.cpp:289
_ACRTIMP errno_t __cdecl _itoa_s(int, char *, size_t, int)
Definition: string.c:2103
_ACRTIMP errno_t __cdecl _putenv_s(const char *, const char *)
Definition: environ.c:392
_ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long, __msvcrt_long)
Definition: math.c:2115
_ACRTIMP double __cdecl strtod(const char *, char **)
Definition: string.c:1072
_ACRTIMP int __cdecl _atodbl(_CRT_DOUBLE *, char *)
Definition: string.c:1162
_ACRTIMP __int64 __cdecl _atoi64(const char *)
Definition: string.c:1757
static void swab(char *src, char *dst, int len)
Definition: stdlib.h:297
_ACRTIMP __msvcrt_ulong __cdecl _lrotl(__msvcrt_ulong, int)
_ACRTIMP __int64 __cdecl atoll(const char *)
Definition: stdlib.h:1451
_ACRTIMP errno_t __cdecl _i64toa_s(__int64, char *, size_t, int)
Definition: string.c:2516
_ACRTIMP unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64)
Definition: byteswap.cpp:49
_ACRTIMP __msvcrt_ulong __cdecl _lrotr(__msvcrt_ulong, int)
_ACRTIMP char *__cdecl _fcvt(double, int, int *, int *)
Definition: math.c:1840
wchar_t ** __wargv
Definition: getargs.c:20
_ACRTIMP size_t __cdecl _mbstrlen(const char *)
Definition: mbcs.c:3153
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
return ret
Definition: mutex.c:146
#define abs(i)
Definition: fconv.c:206
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLenum func
Definition: glext.h:6028
GLuint res
Definition: glext.h:9613
GLenum src
Definition: glext.h:6340
GLsizeiptr size
Definition: glext.h:5919
GLenum GLint GLuint mask
Definition: glext.h:6028
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLenum GLenum dst
Definition: glext.h:6340
GLbitfield flags
Definition: glext.h:7161
GLuint GLuint num
Definition: glext.h:9618
GLenum GLsizei len
Definition: glext.h:6722
#define sign(x)
Definition: mapdesc.cc:613
#define _splitpath_s(f, d, dl, p, pl, n, nl, e, el)
Definition: utility.h:212
static PVOID ptr
Definition: dispmode.c:27
const char * var
Definition: shader.c:5666
static size_t double int int * decpt
Definition: printf.c:52
static unsigned(__cdecl *hash_bstr)(bstr_t s)
const WCHAR * str
_ultoa
Definition: stdlib.h:688
_ltoa
Definition: stdlib.h:665
_itoa
Definition: stdlib.h:642
_makepath
Definition: stdlib.h:1096
#define exit(n)
Definition: config.h:202
double atof()
#define strtoull
Definition: stabs.c:58
double x
Definition: stdlib.h:24
float f
Definition: stdlib.h:19
Definition: stdlib.h:47
int quot
Definition: stdlib.h:48
int rem
Definition: stdlib.h:49
Definition: stdlib.h:52
__msvcrt_long quot
Definition: stdlib.h:53
__msvcrt_long rem
Definition: stdlib.h:54
__int64 rem
Definition: stdlib.h:59
__int64 quot
Definition: stdlib.h:58
Definition: query.h:86
Definition: fci.c:127
Definition: parser.c:49
#define bsearch
Definition: pdh_main.c:96
size_t const unsigned const radix
Definition: xtoa.cpp:37