📄 stdlib.h
字号:
#endif /* _MAC */
_CRTIMP extern char * _pgmptr; /* points to the module (EXE) name */
#ifndef _MAC
_CRTIMP extern wchar_t * _wpgmptr; /* points to the module (EXE) wide name */
#endif /* _MAC */
#endif /* defined (_DLL) && defined (_M_IX86) */
#ifdef SPECIAL_CRTEXE
extern int _fmode; /* default file translation mode */
#else /* SPECIAL_CRTEXE */
_CRTIMP extern int _fmode; /* default file translation mode */
#endif /* SPECIAL_CRTEXE */
_CRTIMP extern int _fileinfo; /* open file info mode (for spawn) */
/* Windows major/minor and O.S. version numbers */
_CRTIMP extern unsigned int _osver;
_CRTIMP extern unsigned int _winver;
_CRTIMP extern unsigned int _winmajor;
_CRTIMP extern unsigned int _winminor;
/* function prototypes */
#if _MSC_VER >= 1200
_CRTIMP __declspec(noreturn) void __cdecl abort(void);
_CRTIMP __declspec(noreturn) void __cdecl exit(int);
#else /* _MSC_VER >= 1200 */
_CRTIMP void __cdecl abort(void);
_CRTIMP void __cdecl exit(int);
#endif /* _MSC_VER >= 1200 */
#if defined (_M_MRX000)
_CRTIMP int __cdecl abs(int);
#else /* defined (_M_MRX000) */
int __cdecl abs(int);
#endif /* defined (_M_MRX000) */
int __cdecl atexit(void (__cdecl *)(void));
_CRTIMP double __cdecl atof(const char *);
_CRTIMP int __cdecl atoi(const char *);
_CRTIMP long __cdecl atol(const char *);
#ifdef _M_M68K
_CRTIMP long double __cdecl _atold(const char *);
#endif /* _M_M68K */
_CRTIMP void * __cdecl bsearch(const void *, const void *, size_t, size_t,
int (__cdecl *)(const void *, const void *));
_CRTIMP void * __cdecl calloc(size_t, size_t);
_CRTIMP div_t __cdecl div(int, int);
_CRTIMP void __cdecl free(void *);
_CRTIMP char * __cdecl getenv(const char *);
_CRTIMP char * __cdecl _itoa(int, char *, int);
#if _INTEGRAL_MAX_BITS >= 64
_CRTIMP char * __cdecl _i64toa(__int64, char *, int);
_CRTIMP char * __cdecl _ui64toa(unsigned __int64, char *, int);
_CRTIMP __int64 __cdecl _atoi64(const char *);
#endif /* _INTEGRAL_MAX_BITS >= 64 */
#if defined (_M_MRX000)
_CRTIMP long __cdecl labs(long);
#else /* defined (_M_MRX000) */
long __cdecl labs(long);
#endif /* defined (_M_MRX000) */
_CRTIMP ldiv_t __cdecl ldiv(long, long);
_CRTIMP char * __cdecl _ltoa(long, char *, int);
_CRTIMP void * __cdecl malloc(size_t);
_CRTIMP int __cdecl mblen(const char *, size_t);
_CRTIMP size_t __cdecl _mbstrlen(const char *s);
_CRTIMP int __cdecl mbtowc(wchar_t *, const char *, size_t);
_CRTIMP size_t __cdecl mbstowcs(wchar_t *, const char *, size_t);
_CRTIMP void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)
(const void *, const void *));
_CRTIMP int __cdecl rand(void);
_CRTIMP void * __cdecl realloc(void *, size_t);
_CRTIMP int __cdecl _set_error_mode(int);
_CRTIMP void __cdecl srand(unsigned int);
_CRTIMP double __cdecl strtod(const char *, char **);
_CRTIMP long __cdecl strtol(const char *, char **, int);
#ifdef _M_M68K
_CRTIMP long double __cdecl _strtold(const char *, char **);
#endif /* _M_M68K */
_CRTIMP unsigned long __cdecl strtoul(const char *, char **, int);
#ifndef _MAC
_CRTIMP int __cdecl system(const char *);
#endif /* _MAC */
_CRTIMP char * __cdecl _ultoa(unsigned long, char *, int);
_CRTIMP int __cdecl wctomb(char *, wchar_t);
_CRTIMP size_t __cdecl wcstombs(char *, const wchar_t *, size_t);
#ifndef _MAC
#ifndef _WSTDLIB_DEFINED
/* wide function prototypes, also declared in wchar.h */
_CRTIMP wchar_t * __cdecl _itow (int, wchar_t *, int);
_CRTIMP wchar_t * __cdecl _ltow (long, wchar_t *, int);
_CRTIMP wchar_t * __cdecl _ultow (unsigned long, wchar_t *, int);
_CRTIMP double __cdecl wcstod(const wchar_t *, wchar_t **);
_CRTIMP long __cdecl wcstol(const wchar_t *, wchar_t **, int);
_CRTIMP unsigned long __cdecl wcstoul(const wchar_t *, wchar_t **, int);
_CRTIMP wchar_t * __cdecl _wgetenv(const wchar_t *);
_CRTIMP int __cdecl _wsystem(const wchar_t *);
_CRTIMP int __cdecl _wtoi(const wchar_t *);
_CRTIMP long __cdecl _wtol(const wchar_t *);
#if _INTEGRAL_MAX_BITS >= 64
_CRTIMP wchar_t * __cdecl _i64tow(__int64, wchar_t *, int);
_CRTIMP wchar_t * __cdecl _ui64tow(unsigned __int64, wchar_t *, int);
_CRTIMP __int64 __cdecl _wtoi64(const wchar_t *);
#endif /* _INTEGRAL_MAX_BITS >= 64 */
#define _WSTDLIB_DEFINED
#endif /* _WSTDLIB_DEFINED */
#endif /* _MAC */
_CRTIMP char * __cdecl _ecvt(double, int, int *, int *);
#if _MSC_VER >= 1200
_CRTIMP __declspec(noreturn) void __cdecl _exit(int);
#else /* _MSC_VER >= 1200 */
_CRTIMP void __cdecl _exit(int);
#endif /* _MSC_VER >= 1200 */
_CRTIMP char * __cdecl _fcvt(double, int, int *, int *);
_CRTIMP char * __cdecl _fullpath(char *, const char *, size_t);
_CRTIMP char * __cdecl _gcvt(double, int, char *);
unsigned long __cdecl _lrotl(unsigned long, int);
unsigned long __cdecl _lrotr(unsigned long, int);
#ifndef _MAC
_CRTIMP void __cdecl _makepath(char *, const char *, const char *, const char *,
const char *);
#endif /* _MAC */
_onexit_t __cdecl _onexit(_onexit_t);
_CRTIMP void __cdecl perror(const char *);
_CRTIMP int __cdecl _putenv(const char *);
unsigned int __cdecl _rotl(unsigned int, int);
unsigned int __cdecl _rotr(unsigned int, int);
_CRTIMP void __cdecl _searchenv(const char *, const char *, char *);
#ifndef _MAC
_CRTIMP void __cdecl _splitpath(const char *, char *, char *, char *, char *);
#endif /* _MAC */
_CRTIMP void __cdecl _swab(char *, char *, int);
#ifndef _MAC
#ifndef _WSTDLIBP_DEFINED
/* wide function prototypes, also declared in wchar.h */
_CRTIMP wchar_t * __cdecl _wfullpath(wchar_t *, const wchar_t *, size_t);
_CRTIMP void __cdecl _wmakepath(wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *,
const wchar_t *);
_CRTIMP void __cdecl _wperror(const wchar_t *);
_CRTIMP int __cdecl _wputenv(const wchar_t *);
_CRTIMP void __cdecl _wsearchenv(const wchar_t *, const wchar_t *, wchar_t *);
_CRTIMP void __cdecl _wsplitpath(const wchar_t *, wchar_t *, wchar_t *, wchar_t *, wchar_t *);
#define _WSTDLIBP_DEFINED
#endif /* _WSTDLIBP_DEFINED */
#endif /* _MAC */
/* --------- The following functions are OBSOLETE --------- */
/* The Win32 API SetErrorMode, Beep and Sleep should be used instead. */
#ifndef _MAC
_CRTIMP void __cdecl _seterrormode(int);
_CRTIMP void __cdecl _beep(unsigned, unsigned);
_CRTIMP void __cdecl _sleep(unsigned long);
#endif /* _MAC */
/* --------- The preceding functions are OBSOLETE --------- */
#if !__STDC__
/* --------- The declarations below should not be in stdlib.h --------- */
/* --------- and will be removed in a future release. Include --------- */
/* --------- ctype.h to obtain these declarations. --------- */
#ifndef tolower
_CRTIMP int __cdecl tolower(int);
#endif /* tolower */
#ifndef toupper
_CRTIMP int __cdecl toupper(int);
#endif /* toupper */
/* --------- The declarations above will be removed. --------- */
#endif /* !__STDC__ */
#ifdef _MT
char * __cdecl _getenv_lk(const char *); /* _MTHREAD_ONLY */
#ifndef _MAC
wchar_t * __cdecl _wgetenv_lk(const wchar_t *); /* _MTHREAD_ONLY */
#endif /* _MAC */
int __cdecl _putenv_lk(const char *); /* _MTHREAD_ONLY */
#ifndef _MAC
int __cdecl _wputenv_lk(const wchar_t *); /* _MTHREAD_ONLY */
#endif /* _MAC */
int __cdecl _mblen_lk(const char *, size_t); /* _MTHREAD_ONLY */
int __cdecl _mbtowc_lk(wchar_t*,const char*,size_t); /* _MTHREAD_ONLY */
size_t __cdecl _mbstowcs_lk(wchar_t*,const char*,size_t); /* _MTHREAD_ONLY */
int __cdecl _wctomb_lk(char*,wchar_t); /* _MTHREAD_ONLY */
size_t __cdecl _wcstombs_lk(char*,const wchar_t*,size_t); /* _MTHREAD_ONLY */
#else /* _MT */
#define _getenv_lk(envvar) getenv(envvar) /* _MTHREAD_ONLY */
#ifndef _MAC
#define _wgetenv_lk(envvar) _wgetenv(envvar) /* _MTHREAD_ONLY */
#endif /* _MAC */
#define _putenv_lk(envvar) _putenv(envvar) /* _MTHREAD_ONLY */
#ifndef _MAC
#define _wputenv_lk(envvar) _wputenv(envvar) /* _MTHREAD_ONLY */
#endif /* _MAC */
#define _mblen_lk(s,n) mblen(s,n) /* _MTHREAD_ONLY */
#define _mbtowc_lk(pwc,s,n) mbtowc(pwc,s,n) /* _MTHREAD_ONLY */
#define _mbstowcs_lk(pwcs,s,n) mbstowcs(pwcs,s,n) /* _MTHREAD_ONLY */
#define _wctomb_lk(s,wchar) wctomb(s,wchar) /* _MTHREAD_ONLY */
#define _wcstombs_lk(s,pwcs,n) wcstombs(s,pwcs,n) /* _MTHREAD_ONLY */
#endif /* _MT */
#if !__STDC__
/* Non-ANSI names for compatibility */
#ifndef __cplusplus
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif /* __cplusplus */
#define sys_errlist _sys_errlist
#define sys_nerr _sys_nerr
#define environ _environ
_CRTIMP char * __cdecl ecvt(double, int, int *, int *);
_CRTIMP char * __cdecl fcvt(double, int, int *, int *);
_CRTIMP char * __cdecl gcvt(double, int, char *);
_CRTIMP char * __cdecl itoa(int, char *, int);
_CRTIMP char * __cdecl ltoa(long, char *, int);
onexit_t __cdecl onexit(onexit_t);
_CRTIMP int __cdecl putenv(const char *);
_CRTIMP void __cdecl swab(char *, char *, int);
_CRTIMP char * __cdecl ultoa(unsigned long, char *, int);
#endif /* !__STDC__ */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#ifdef _MSC_VER
#pragma pack(pop)
#endif /* _MSC_VER */
#endif /* _INC_STDLIB */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -