stdlib.h 头文件

stdlib 头文件即standard library标准库头文件
stdlib 头文件里包含了C、C++语言的最常用的系统函数
该文件包含了C语言标准库函数的定义
stdlib.h里面定义了五种类型、一些宏和通用工具函数。 类型例如size_t、wchar_t、div_t、ldiv_t和lldiv_t; 宏例如EXIT_FAILURE、EXIT_SUCCESS、RAND_MAX和MB_CUR_MAX等等; 常用的函数如malloc()、calloc()、realloc()、free()、system()、atoi()、atol()、rand()、srand()、exit()等等。 具体的内容你自己可以打开编译器的include目录里面的stdlib.h头文件看看。
内容:
/*****stdlib.h-declarations/definitionsforcommonlyusedlibraryfunctions**Copyright(c)MicrosoftCorporation.Allrightsreserved.**Purpose:*Thisincludefilecontainsthefunctiondeclarationsforcommonly*usedlibraryfunctionswhicheitherdon'tfitsomewhereelse,or,*cannotbedeclaredinthenormalplaceforotherreasons.*[ANSI]**[Public]*****/
#if_MSC_VER>1000#pragmaonce#endif
#ifndef_INC_STDLIB#define_INC_STDLIB
#include<crtdefs.h>#include<limits.h>
#ifdef_MSC_VER/***Currently,allMSCcompilersforWin32platformsdefaultto8byte*alignment.*/#pragmapack(push,_CRT_PACKING)#endif/**_MSC_VER*/
#ifdef__cplusplusextern"C"{#endif
/**DefineNULLpointervalue*/#ifndefNULL#ifdef__cplusplus#defineNULL0#else#defineNULL((void*)0)#endif#endif
/**Definitionoftheargumentvaluesfortheexit()function*/
#defineEXIT_SUCCESS0#defineEXIT_FAILURE1
#ifndef_ONEXIT_T_DEFINED
#if!defined(_M_CEE_PURE)||(_MSC_VER<1400)typedefint(__cdecl*_onexit_t)(void);#elsetypedefint(__clrcall*_onexit_t)(void);typedef_onexit_t_onexit_m_t;#endif
#ifdefined(_M_CEE_MIXED)&&(_MSC_VER>=1400)typedefint(__clrcall*_onexit_m_t)(void);#endif
#if!__STDC__/**Non-ANSInameforcompatibility*/#defineonexit_t_onexit_t#endif
#define_ONEXIT_T_DEFINED#endif
/**Datastructuredefinitionsfordivandldivruntimes.*/
#ifndef_DIV_T_DEFINED
typedefstruct_div_t{intquot;intrem;}div_t;
typedefstruct_ldiv_t{longquot;longrem;}ldiv_t;
#define_DIV_T_DEFINED#endif
/***structsusedtofoolthecompilerintonotgeneratingfloatingpoint*instructionswhencopyingandpushing[long]doublevalues*/
#ifndef_CRT_DOUBLE_DEC
#ifndef_LDSUPPORT
#pragmapack(4)typedefstruct{unsignedcharld[10];}_LDOUBLE;#pragmapack()
#define_PTR_LD(x)((unsignedchar*)(&(x)->ld))
#else
/**pushandpoplong,whichis#definedas__int64byaspec2ktest*/#pragmapush_macro("long")#undeflongtypedeflongdouble_LDOUBLE;#pragmapop_macro("long")
#define_PTR_LD(x)((unsignedchar*)(x))
#endif
typedefstruct{doublex;}_CRT_DOUBLE;
typedefstruct{floatf;}_CRT_FLOAT;
/**pushandpoplong,whichis#definedas__int64byaspec2ktest*/#pragmapush_macro("long")#undeflong
typedefstruct{/***Assumethereisalongdoubletype*/longdoublex;}_LONGDOUBLE;
#pragmapop_macro("long")
#pragmapack(4)typedefstruct{unsignedcharld12[12];}_LDBL12;#pragmapack()
#define_CRT_DOUBLE_DEC#endif
/**Maximumvaluethatcanbereturnedbytherandfunction.*/
#defineRAND_MAX0x7fff
/***Maximumnumberofbytesinmulti-bytecharacterinthecurrentlocale*(alsodefinedinctype.h).*/#ifndefMB_CUR_MAX#ifdefined(_MT)&&(defined(_M_CEE_PURE))#defineMB_CUR_MAX___mb_cur_max_func()#else#defineMB_CUR_MAX__mb_cur_max#endif#if!defined(_M_CEE_PURE)_CRTIMPexternint__mb_cur_max;#else_CRTIMPint*__cdecl__p___mb_cur_max();#define__mb_cur_max(*__p___mb_cur_max())#endif/**!defined(_M_CEE_PURE)*/_CRTIMPint__cdecl___mb_cur_max_func(void);_CRTIMPint__cdecl___mb_cur_max_l_func(_locale_t);#endif/**MB_CUR_MAX*/
/**Minimumandmaximummacros*/
#define__max(a,b)(((a)>(b))?(a):(b))#define__min(a,b)(((a)<(b))?(a):(b))
/***Sizesforbuffersusedbythe_makepath()and_splitpath()functions.*notethatthesizesincludespacefor0-terminator*/#define_MAX_PATH260/**max.lengthoffullpathname*/#define_MAX_DRIVE3/**max.lengthofdrivecomponent*/#define_MAX_DIR256/**max.lengthofpathcomponent*/#define_MAX_FNAME256/**max.lengthoffilenamecomponent*/#define_MAX_EXT256/**max.lengthofextensioncomponent*/
/***Argumentvaluesfor_set_error_mode().*/#define_OUT_TO_DEFAULT0#define_OUT_TO_STDERR1#define_OUT_TO_MSGBOX2#define_REPORT_ERRMODE3
/***Argumentvaluesfor_set_abort_behavior().*/#define_WRITE_ABORT_MSG0x1#define_CALL_REPORTFAULT0x2
/***Sizesforbuffersusedbythegetenv/putenvfamilyoffunctions.*/#define_MAX_ENV32767
/**Externalvariabledeclarations*/#ifndef_CRT_ERRNO_DEFINED#define_CRT_ERRNO_DEFINED#ifdef_NTSUBSET_externinterrno;#else/**_NTSUBSET_*/_CRTIMPexternint*__cdecl_errno(void);#defineerrno(*_errno())
errno_t__cdecl_set_errno(__inint_Value);errno_t__cdecl_get_errno(__outint*_Value);
#endif/**_NTSUBSET_*/#endif/**_CRT_ERRNO_DEFINED*/
#ifndef_NTSUBSET__CRTIMPunsignedlong*__cdecl__doserrno(void);#define_doserrno(*__doserrno())
errno_t__cdecl_set_doserrno(__inunsignedlong_Value);errno_t__cdecl_get_doserrno(__outunsignedlong*_Value);#endif/**_NTSUBSET_*/
#define_CRT_SYS_ERR_DATA
#ifndef_CRT_SYS_ERR_DATA
/**youcan'tmodifythis,butitisnon-constforbackcompat*/_CRTIMP_CRT_INSECURE_DEPRECATE(strerror)char**__cdecl__sys_errlist(void);#define_sys_errlist(__sys_errlist())
_CRTIMP_CRT_INSECURE_DEPRECATE(strerror)int*__cdecl__sys_nerr(void);#define_sys_nerr(*__sys_nerr())
#else/**_CRT_SYS_ERR_DATA*/
#ifndef_M_CEE_PURE
_CRTIMP_CRT_INSECURE_DEPRECATE(strerror)externcharconst*const_sys_errlist[];/**perrorerrormessagetable*/_CRTIMP_CRT_INSECURE_DEPRECATE(strerror)externconstint_sys_nerr;/**#ofentriesinsys_errlisttable*/
#endif
#endif/**_CRT_SYS_ERR_DATA*/
#ifdefined(_DLL)&&defined(_M_IX86)
_CRTIMPint*__cdecl__p___argc(void);_CRTIMPchar***__cdecl__p___argv(void);_CRTIMPwchar_t***__cdecl__p___wargv(void);_CRTIMPchar***__cdecl__p__environ(void);_CRTIMPwchar_t***__cdecl__p__wenviron(void);_CRTIMPchar**__cdecl__p__pgmptr(void);_CRTIMPwchar_t**__cdecl__p__wpgmptr(void);
#endif/**_M_IX86&&_DLL*/
#if!defined(_M_CEE_PURE)_CRTIMPexternint__argc;/**countofcmdlineargs*/_CRTIMPexternchar**__argv;/**pointertotableofcmdlineargs*/_CRTIMPexternwchar_t**__wargv;/**pointertotableofwidecmdlineargs*/#else_CRTIMPint*__cdecl__p___argc();_CRTIMPchar***__cdecl__p___argv();_CRTIMPwchar_t***__cdecl__p___wargv();#define__argv(*__p___argv())#define__argc(*__p___argc())#define__wargv(*__p___wargv())#endif
_CRTIMPerrno_t__cdecl_get_environ(__outchar***Value);
_CRTIMPerrno_t__cdecl_get_wenviron(__outwchar_t***Value);
#if!defined(_M_CEE_PURE)_CRTIMPexternchar**_environ;/**pointertoenvironmenttable*/_CRTIMPexternwchar_t**_wenviron;/**pointertowideenvironmenttable*/
_CRT_INSECURE_DEPRECATE_GLOBALS(_get_pgmptr)_CRTIMPexternchar*_pgmptr;/**pointstothemodule(EXE)name*/_CRT_INSECURE_DEPRECATE_GLOBALS(_get_wpgmptr)_CRTIMPexternwchar_t*_wpgmptr;/**pointstothemodule(EXE)widename*/
#else
_CRTIMPchar***__cdecl__p__environ();_CRTIMPwchar_t***__cdecl__p__wenviron();_CRT_INSECURE_DEPRECATE_GLOBALS(_get_pgmptr)_CRTIMPchar**__cdecl__p__pgmptr();_CRT_INSECURE_DEPRECATE_GLOBALS(_get_wpgmptr)_CRTIMPwchar_t**__cdecl__p__wpgmptr();
#define_environ(*__p__environ())#define_wenviron(*__p__wenviron())#define_pgmptr(*__p__pgmptr())#define_wpgmptr(*__p__wpgmptr())
#endif/**!defined(_M_CEE_PURE)*/
errno_t__cdecl_get_pgmptr(__deref_out_zchar**_Value);errno_t__cdecl_get_wpgmptr(__deref_out_zwchar_t**_Value);
#if!defined(_M_CEE_PURE)_CRT_INSECURE_DEPRECATE_GLOBALS(_get_fmode)_CRTIMPexternint_fmode;/**defaultfiletranslationmode*/#else_CRTIMPint*__cdecl__p__fmode();#define_fmode(*__p__fmode())#endif/**!defined(_M_CEE_PURE)*/
_CRTIMPerrno_t__cdecl_set_fmode(__inint_Mode);_CRTIMPerrno_t__cdecl_get_fmode(__outint*_PMode);
#if!defined(_M_CEE_PURE)__declspec(deprecated)_CRTIMPexternint_fileinfo;/**openfileinfomode(forspawn)*/#endif/**!defined(_M_CEE_PURE)*/__declspec(deprecated)errno_t__cdecl_set_fileinfo(int);__declspec(deprecated)errno_t__cdecl_get_fileinfo(int*);
/**Windowsmajor/minorandO.S.versionnumbers*/
#pragmawarning(push)#pragmawarning(disable:4141)
#if!defined(_M_CEE_PURE)_CRT_INSECURE_DEPRECATE(_get_osplatform)_CRT_OBSOLETE(GetVersionEx)_CRTIMPexternunsignedint_osplatform;_CRT_INSECURE_DEPRECATE(_get_osver)_CRT_OBSOLETE(GetVersionEx)_CRTIMPexternunsignedint_osver;_CRT_INSECURE_DEPRECATE(_get_winver)_CRT_OBSOLETE(GetVersionEx)_CRTIMPexternunsignedint_winver;_CRT_INSECURE_DEPRECATE(_get_winmajor)_CRT_OBSOLETE(GetVersionEx)_CRTIMPexternunsignedint_winmajor;_CRT_INSECURE_DEPRECATE(_get_winminor)_CRT_OBSOLETE(GetVersionEx)_CRTIMPexternunsignedint_winminor;
#else_CRT_INSECURE_DEPRECATE(_get_osplatform)_CRT_OBSOLETE(GetVersionEx)_CRTIMPunsignedint*__cdecl__p__osplatform();_CRT_INSECURE_DEPRECATE(_get_osver)_CRT_OBSOLETE(GetVersionEx)_CRTIMPunsignedint*__cdecl__p__osver();_CRT_INSECURE_DEPRECATE(_get_winver)_CRT_OBSOLETE(GetVersionEx)_CRTIMPunsignedint*__cdecl__p__winver();_CRT_INSECURE_DEPRECATE(_get_winmajor)_CRT_OBSOLETE(GetVersionEx)_CRTIMPunsignedint*__cdecl__p__winmajor();_CRT_INSECURE_DEPRECATE(_get_winminor)_CRT_OBSOLETE(GetVersionEx)_CRTIMPunsignedint*__cdecl__p__winminor();
#define_osplatform(*__p__osplatform())#define_osver(*__p__osver())#define_winver(*__p__winver())#define_winmajor(*__p__winmajor())#define_winminor(*__p__winminor())#endif/**!defined(_M_CEE_PURE)*/
#pragmawarning(pop)
_CRT_OBSOLETE(GetVersionEx)errno_t__cdecl_get_osplatform(__outunsignedint*_Value);_CRT_OBSOLETE(GetVersionEx)errno_t__cdecl_get_osver(__outunsignedint*_Value);_CRT_OBSOLETE(GetVersionEx)errno_t__cdecl_get_winver(__outunsignedint*_Value);_CRT_OBSOLETE(GetVersionEx)errno_t__cdecl_get_winmajor(__outunsignedint*_Value);_CRT_OBSOLETE(GetVersionEx)errno_t__cdecl_get_winminor(__outunsignedint*_Value);
/**_countofhelper*/#if!defined(_countof)#if!defined(__cplusplus)#define_countof(_Array)(sizeof(_Array)/sizeof(_Array[0]))#elseextern"C++"{template<typename_CountofType,size_t_SizeOfArray>char(*__countof_helper(UNALIGNED_CountofType(&_Array)[_SizeOfArray]))[_SizeOfArray];#define_countof(_Array)sizeof(*__countof_helper(_Array))}#endif#endif
/**functionprototypes*/
#ifndef_CRT_TERMINATE_DEFINED#define_CRT_TERMINATE_DEFINED_CRTIMP__declspec(noreturn)void__cdeclexit(__inint_Code);_CRTIMP__declspec(noreturn)void__cdecl_exit(__inint_Code);_CRTIMPvoid__cdeclabort(void);#endif
_CRTIMPunsignedint__cdecl_set_abort_behavior(__inunsignedint_Flags,__inunsignedint_Mask);
#ifndef_CRT_ABS_DEFINED#define_CRT_ABS_DEFINEDint__cdeclabs(__inint_X);long__cdecllabs(__inlong_X);#endif
#if_INTEGRAL_MAX_BITS>=64__int64__cdecl_abs64(__int64);#endif#if_MSC_VER>=1400&&defined(_M_CEE)__checkReturnint__clrcall_atexit_m_appdomain(__in_optvoid(__clrcall*_Func)(void));#ifdefined(_M_CEE_MIXED)__checkReturnint__clrcall_atexit_m(__in_optvoid(__clrcall*_Func)(void));#else__checkReturninlineint__clrcall_atexit_m(__in_optvoid(__clrcall*_Function)(void)){return_atexit_m_appdomain(_Function);}#endif#endif#ifdefined(_M_CEE_PURE)/**Inpuremode,atexitisthesameasatexit_m*/extern"C++"{inlineint__clrcallatexit(void(__clrcall*_Function)(void)){return_atexit_m_appdomain(_Function);}}#elseint__cdeclatexit(void(__cdecl*)(void));#endif#ifndef_CRT_ATOF_DEFINED#define_CRT_ATOF_DEFINED_CRTIMPdouble__cdeclatof(__in_zconstchar*_String);_CRTIMPdouble__cdecl_atof_l(__in_zconstchar*_String,__in_opt_locale_t_Locale);#endif_CRTIMP_CRT_JIT_INTRINSIC__checkReturnint__cdeclatoi(__in_zconstchar*_Str);_CRTIMP__checkReturnint__cdecl_atoi_l(__in_zconstchar*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnlong__cdeclatol(__in_zconstchar*_Str);_CRTIMP__checkReturnlong__cdecl_atol_l(__in_zconstchar*_Str,__in_opt_locale_t_Locale);#ifndef_CRT_ALGO_DEFINED#define_CRT_ALGO_DEFINED#if__STDC_WANT_SECURE_LIB___CRTIMP__checkReturnvoid*__cdeclbsearch_s(__inconstvoid*_Key,__in_bcount(_NumOfElements*_SizeOfElements)constvoid*_Base,__inrsize_t_NumOfElements,__inrsize_t_SizeOfElements,__inint(__cdecl*_PtFuncCompare)(void*,constvoid*,constvoid*),void*_Context);#endif_CRTIMP__checkReturnvoid*__cdeclbsearch(__inconstvoid*_Key,__in_bcount(_NumOfElements*_SizeOfElements)constvoid*_Base,__insize_t_NumOfElements,__insize_t_SizeOfElements,__inint(__cdecl*_PtFuncCompare)(constvoid*,constvoid*));
#if__STDC_WANT_SECURE_LIB___CRTIMP_ALTvoid__cdeclqsort_s(__inout_bcount(_NumOfElements*_SizeOfElements)void*_Base,__inrsize_t_NumOfElements,__inrsize_t_SizeOfElements,__inint(__cdecl*_PtFuncCompare)(void*,constvoid*,constvoid*),void*_Context);#endif_CRTIMPvoid__cdeclqsort(__inout_bcount(_NumOfElements*_SizeOfElements)void*_Base,__insize_t_NumOfElements,__insize_t_SizeOfElements,__inint(__cdecl*_PtFuncCompare)(constvoid*,constvoid*));#endif__checkReturnunsignedshort__cdecl_byteswap_ushort(__inunsignedshort_Short);__checkReturnunsignedlong__cdecl_byteswap_ulong(__inunsignedlong_Long);#if_INTEGRAL_MAX_BITS>=64__checkReturnunsigned__int64__cdecl_byteswap_uint64(unsigned__int64_Int64);#endif_CRTIMP__checkReturndiv_t__cdecldiv(__inint_Numerator,__inint_Denominator);_CRTIMP_CRT_INSECURE_DEPRECATE(_dupenv_s)__checkReturnchar*__cdeclgetenv(__in_zconstchar*_VarName);#if__STDC_WANT_SECURE_LIB___CRTIMP__checkReturn_opterrno_t__cdeclgetenv_s(__outsize_t*_ReturnSize,__out_ecount_z(_DstSize)char*_DstBuf,__inrsize_t_DstSize,__in_zconstchar*_VarName);#endif__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,getenv_s,__outsize_t*,_ReturnSize,__out_ecount(_Size)char,_Dest,__in_zconstchar*,_VarName)_CRTIMP__checkReturn_opterrno_t__cdecl_dupenv_s(__deref_out_ecount_z_opt(*_PBufferSizeInBytes)char**_PBuffer,__out_optsize_t*_PBufferSizeInBytes,__in_zconstchar*_VarName);_CRTIMP_ALT__checkReturn_opterrno_t__ALTDECL_itoa_s(__inint_Value,__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_itoa_s,__inint,_Value,__out_ecount(_Size)char,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(char*,__RETURN_POLICY_DST,_CRTIMP,_itoa,__inint,_Value,__out_zchar,_Dest,__inint,_Radix)#if_INTEGRAL_MAX_BITS>=64_CRTIMP_ALT__checkReturn_opterrno_t__ALTDECL_i64toa_s(__in__int64_Val,__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__inint_Radix);_CRTIMP_CRT_INSECURE_DEPRECATE(_i64toa_s)char*__cdecl_i64toa(__in__int64_Val,__out_zchar*_DstBuf,__inint_Radix);_CRTIMP_ALT__checkReturn_opterrno_t__ALTDECL_ui64toa_s(__inunsigned__int64_Val,__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__inint_Radix);_CRTIMP_CRT_INSECURE_DEPRECATE(_ui64toa_s)char*__cdecl_ui64toa(__inunsigned__int64_Val,__out_zchar*_DstBuf,__inint_Radix);_CRTIMP__checkReturn__int64__cdecl_atoi64(__in_zconstchar*_String);_CRTIMP__checkReturn__int64__cdecl_atoi64_l(__in_zconstchar*_String,__in_opt_locale_t_Locale);_CRTIMP__checkReturn__int64__cdecl_strtoi64(__in_zconstchar*_String,__deref_opt_out_zchar**_EndPtr,__inint_Radix);_CRTIMP__checkReturn__int64__cdecl_strtoi64_l(__in_zconstchar*_String,__deref_opt_out_zchar**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);_CRTIMP__checkReturnunsigned__int64__cdecl_strtoui64(__in_zconstchar*_String,__deref_opt_out_zchar**_EndPtr,__inint_Radix);_CRTIMP__checkReturnunsigned__int64__cdecl_strtoui64_l(__in_zconstchar*_String,__deref_opt_out_zchar**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);#endif_CRTIMP__checkReturnldiv_t__cdeclldiv(__inlong_Numerator,__inlong_Denominator);#ifdef__cplusplusextern"C++"{inlineldiv_tdiv(__inlong_A1,__inlong_A2){returnldiv(_A1,_A2);}}#endif_CRTIMP_ALT__checkReturn_opterrno_t__ALTDECL_ltoa_s(__inlong_Val,__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_ltoa_s,__inlong,_Value,__out_ecount(_Size)char,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(char*,__RETURN_POLICY_DST,_CRTIMP,_ltoa,__inlong,_Value,__out_zchar,_Dest,__inint,_Radix)_CRTIMP__checkReturnint__cdeclmblen(__in_bcount_z_opt(_MaxCount)constchar*_Ch,__insize_t_MaxCount);_CRTIMP__checkReturnint__cdecl_mblen_l(__in_bcount_z_opt(_MaxCount)constchar*_Ch,__insize_t_MaxCount,__in_opt_locale_t_Locale);_CRTIMP__checkReturnsize_t__cdecl_mbstrlen(__in_zconstchar*_Str);_CRTIMP__checkReturnsize_t__cdecl_mbstrlen_l(__in_zconstchar*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnsize_t__cdecl_mbstrnlen(__in_bcount_z(_MaxCount)constchar*_Str,__insize_t_MaxCount);_CRTIMP__checkReturnsize_t__cdecl_mbstrnlen_l(__in_bcount_z(_MaxCount)constchar*_Str,__insize_t_MaxCount,__in_opt_locale_t_Locale);_CRTIMPint__cdeclmbtowc(__out_zwchar_t*_DstCh,__in_bcount_z_opt(_SrcSizeInBytes)constchar*_SrcCh,__insize_t_SrcSizeInBytes);_CRTIMPint__cdecl_mbtowc_l(__out_zwchar_t*_DstCh,__in_bcount_z_opt(_SrcSizeInBytes)constchar*_SrcCh,__insize_t_SrcSizeInBytes,__in_opt_locale_t_Locale);_CRTIMP__checkReturn_opterrno_t__cdeclmbstowcs_s(__out_optsize_t*_PtNumOfCharConverted,__out_ecount_part_opt(_SizeInWords,*_PtNumOfCharConverted)wchar_t*_DstBuf,__insize_t_SizeInWords,__in_ecount_z(_MaxCount)constchar*_SrcBuf,__insize_t_MaxCount);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2(errno_t,mbstowcs_s,__out_optsize_t*,_PtNumOfCharConverted,__out_ecount_z(_Size)wchar_t,_Dest,__in_zconstchar*,_Source,__insize_t,_MaxCount)__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(_CRTIMP,mbstowcs,__out_z_optwchar_t,_Dest,__in_zconstchar*,_Source,__insize_t,_MaxCount)
_CRTIMP__checkReturn_opterrno_t__cdecl_mbstowcs_s_l(__out_optsize_t*_PtNumOfCharConverted,__out_ecount_part_opt(_SizeInWords,*_PtNumOfCharConverted)wchar_t*_DstBuf,__insize_t_SizeInWords,__in_ecount_z(_MaxCount)constchar*_SrcBuf,__insize_t_MaxCount,__in_opt_locale_t_Locale);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3(errno_t,_mbstowcs_s_l,__out_optsize_t*,_PtNumOfCharConverted,__out_ecount(_Size)wchar_t,_Dest,__in_zconstchar*,_Source,__insize_t,_MaxCount,__in_opt_locale_t,_Locale)__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_CRTIMP,_mbstowcs_l,_mbstowcs_s_l,__out_ecount_z_opt(_Size)wchar_t,__out_z_optwchar_t,_Dest,__in_zconstchar*,_Source,__insize_t,_MaxCount,__in_opt_locale_t,_Locale)
_CRTIMP__checkReturnint__cdeclrand(void);#ifdefined(_CRT_RAND_S)_CRTIMPerrno_t__cdeclrand_s(__outunsignedint*_RandomValue);#endif
_CRTIMP__checkReturn_optint__cdecl_set_error_mode(__inint_Mode);
_CRTIMPvoid__cdeclsrand(__inunsignedint_Seed);_CRTIMP__checkReturndouble__cdeclstrtod(__in_zconstchar*_Str,__deref_opt_out_zchar**_EndPtr);_CRTIMP__checkReturndouble__cdecl_strtod_l(__in_zconstchar*_Str,__deref_opt_out_zchar**_EndPtr,__in_opt_locale_t_Locale);_CRTIMP__checkReturnlong__cdeclstrtol(__in_zconstchar*_Str,__deref_opt_out_zchar**_EndPtr,__inint_Radix);_CRTIMP__checkReturnlong__cdecl_strtol_l(__in_zconstchar*_Str,__deref_opt_out_zchar**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);_CRTIMP__checkReturnunsignedlong__cdeclstrtoul(__in_zconstchar*_Str,__deref_opt_out_zchar**_EndPtr,__inint_Radix);_CRTIMP__checkReturnunsignedlong__cdecl_strtoul_l(constchar*_Str,__deref_opt_out_zchar**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);#ifndef_CRT_SYSTEM_DEFINED#define_CRT_SYSTEM_DEFINED_CRTIMPint__cdeclsystem(__in_z_optconstchar*_Command);#endif_CRTIMP_ALT__checkReturn_opterrno_t__ALTDECL_ultoa_s(__inunsignedlong_Val,__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_ultoa_s,__inunsignedlong,_Value,__out_ecount(_Size)char,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(char*,__RETURN_POLICY_DST,_CRTIMP,_ultoa,__inunsignedlong,_Value,__out_zchar,_Dest,__inint,_Radix)_CRTIMP_CRT_INSECURE_DEPRECATE(wctomb_s)int__cdeclwctomb(__out_bcount_z_opt(MB_LEN_MAX)char*_MbCh,__in_zwchar_t_WCh);_CRTIMP_CRT_INSECURE_DEPRECATE(_wctomb_s_l)int__cdecl_wctomb_l(__out_z_optchar*_MbCh,__in_zwchar_t_WCh,__in_opt_locale_t_Locale);#if__STDC_WANT_SECURE_LIB___CRTIMP__checkReturn_waterrno_t__cdeclwctomb_s(__out_optint*_SizeConverted,__out_bcount_part_opt(_SizeInBytes,*_SizeConverted)char*_MbCh,__inrsize_t_SizeInBytes,__in_zwchar_t_WCh);#endif_CRTIMP__checkReturn_waterrno_t__cdecl_wctomb_s_l(__out_optint*_SizeConverted,__out_bcount_z_opt(_SizeInBytes)char*_MbCh,__insize_t_SizeInBytes,__in_zwchar_t_WCh,__in_opt_locale_t_Locale);_CRTIMP__checkReturn_waterrno_t__cdeclwcstombs_s(__out_optsize_t*_PtNumOfCharConverted,__out_bcount_part_opt(_DstSizeInBytes,*_PtNumOfCharConverted)char*_Dst,__insize_t_DstSizeInBytes,__in_zconstwchar_t*_Src,__insize_t_MaxCountInBytes);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2(errno_t,wcstombs_s,__out_optsize_t*,_PtNumOfCharConverted,__out_bcount_opt(_Size)char,_Dest,__in_zconstwchar_t*,_Source,__insize_t,_MaxCount)__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(_CRTIMP,wcstombs,__out_z_optchar,_Dest,__in_zconstwchar_t*,_Source,__insize_t,_MaxCount)_CRTIMP__checkReturn_waterrno_t__cdecl_wcstombs_s_l(__out_optsize_t*_PtNumOfCharConverted,__out_bcount_part_opt(_DstSizeInBytes,*_PtNumOfCharConverted)char*_Dst,__insize_t_DstSizeInBytes,__in_zconstwchar_t*_Src,__insize_t_MaxCountInBytes,__in_opt_locale_t_Locale);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3(errno_t,_wcstombs_s_l,__out_optsize_t*,_PtNumOfCharConverted,__out_ecount_opt(_Size)char,_Dest,__in_zconstwchar_t*,_Source,__insize_t,_MaxCount,__in_opt_locale_t,_Locale)__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_CRTIMP,_wcstombs_l,_wcstombs_s_l,__out_ecount_z_opt(_Size)char,__out_z_optchar,_Dest,__in_zconstwchar_t*,_Source,__insize_t,_MaxCount,__in_opt_locale_t,_Locale)
#if_MSC_VER>=1400&&defined(__cplusplus)&&defined(_M_CEE)/***Managedsearchroutines.Note__cplusplus,thisisbecauseweonlysupport*managedC++.*/extern"C++"{#if__STDC_WANT_SECURE_LIB____checkReturnvoid*__clrcallbsearch_s(__inconstvoid*_Key,__in_bcount(_NumOfElements*_SizeOfElements)constvoid*_Base,__inrsize_t_NumOfElements,__inrsize_t_SizeOfElements,__inint(__clrcall*_PtFuncCompare)(void*,constvoid*,constvoid*),void*_Context);#endif__checkReturnvoid*__clrcallbsearch(__inconstvoid*_Key,__in_bcount(_NumOfElements*_SizeOfElements)constvoid*_Base,__insize_t_NumOfElements,__insize_t_SizeOfElements,__inint(__clrcall*_PtFuncCompare)(constvoid*,constvoid*));
#if__STDC_WANT_SECURE_LIB__void__clrcallqsort_s(__inout_bcount(_NumOfElements*_SizeOfElements)void*_Base,__inrsize_t_NumOfElements,__inrsize_t_SizeOfElements,__inint(__clrcall*_PtFuncCompare)(void*,constvoid*,constvoid*),void*_Context);#endifvoid__clrcallqsort(__inout_bcount(_NumOfElements*_SizeOfElements)void*_Base,__insize_t_NumOfElements,__insize_t_SizeOfElements,__inint(__clrcall*_PtFuncCompare)(constvoid*,constvoid*));}#endif
#ifndef_CRT_ALLOCATION_DEFINED#define_CRT_ALLOCATION_DEFINED_CRTIMP_CRT_JIT_INTRINSIC_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_NumOfElements*_SizeOfElements)void*__cdeclcalloc(__insize_t_NumOfElements,__insize_t_SizeOfElements);_CRTIMP_CRTNOALIASvoid__cdeclfree(__inout_optvoid*_Memory);_CRTIMP_CRT_JIT_INTRINSIC_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size)void*__cdeclmalloc(__insize_t_Size);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_NewSize)void*__cdeclrealloc(__in_optvoid*_Memory,__insize_t_NewSize);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size*_Count)void*__cdecl_recalloc(__in_optvoid*_Memory,__insize_t_Count,__insize_t_Size);_CRTIMP_CRTNOALIASvoid__cdecl_aligned_free(__inout_optvoid*_Memory);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size)void*__cdecl_aligned_malloc(__insize_t_Size,__insize_t_Alignment);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size)void*__cdecl_aligned_offset_malloc(__insize_t_Size,__insize_t_Alignment,__insize_t_Offset);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size)void*__cdecl_aligned_realloc(__in_optvoid*_Memory,__insize_t_Size,__insize_t_Alignment);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size*_Count)void*__cdecl_aligned_recalloc(__in_optvoid*_Memory,__insize_t_Count,__insize_t_Size,__insize_t_Alignment);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size)void*__cdecl_aligned_offset_realloc(__in_optvoid*_Memory,__insize_t_Size,__insize_t_Alignment,__insize_t_Offset);_CRTIMP_CRTNOALIAS_CRTRESTRICT__checkReturn__bcount_opt(_Size*_Count)void*__cdecl_aligned_offset_recalloc(__in_optvoid*_Memory,__insize_t_Count,__insize_t_Size,__insize_t_Alignment,__insize_t_Offset);#endif
#ifndef_WSTDLIB_DEFINED
/**widefunctionprototypes,alsodeclaredinwchar.h*/
_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_itow_s(__inint_Val,__out_ecount_z(_SizeInWords)wchar_t*_DstBuf,__insize_t_SizeInWords,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_itow_s,__inint,_Value,__out_ecount(_Size)wchar_t,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(wchar_t*,__RETURN_POLICY_DST,_CRTIMP,_itow,__inint,_Value,__out_zwchar_t,_Dest,__inint,_Radix)_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_ltow_s(__inlong_Val,__out_ecount_z(_SizeInWords)wchar_t*_DstBuf,__insize_t_SizeInWords,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_ltow_s,__inlong,_Value,__out_ecount(_Size)wchar_t,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(wchar_t*,__RETURN_POLICY_DST,_CRTIMP,_ltow,__inlong,_Value,__out_zwchar_t,_Dest,__inint,_Radix)_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_ultow_s(__inunsignedlong_Val,__out_ecount_z(_SizeInWords)wchar_t*_DstBuf,__insize_t_SizeInWords,__inint_Radix);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_ultow_s,__inunsignedlong,_Value,__out_ecount(_Size)wchar_t,_Dest,__inint,_Radix)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(wchar_t*,__RETURN_POLICY_DST,_CRTIMP,_ultow,__inunsignedlong,_Value,__out_zwchar_t,_Dest,__inint,_Radix)_CRTIMP__checkReturndouble__cdeclwcstod(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr);_CRTIMP__checkReturndouble__cdecl_wcstod_l(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,__in_opt_locale_t_Locale);_CRTIMP__checkReturnlong__cdeclwcstol(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,int_Radix);_CRTIMP__checkReturnlong__cdecl_wcstol_l(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,int_Radix,__in_opt_locale_t_Locale);_CRTIMP__checkReturnunsignedlong__cdeclwcstoul(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,int_Radix);_CRTIMP__checkReturnunsignedlong__cdecl_wcstoul_l(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,int_Radix,__in_opt_locale_t_Locale);_CRTIMP_CRT_INSECURE_DEPRECATE(_wdupenv_s)__checkReturnwchar_t*__cdecl_wgetenv(__in_zconstwchar_t*_VarName);_CRTIMP__checkReturn_waterrno_t__cdecl_wgetenv_s(__outsize_t*_ReturnSize,__out_ecount_z(_DstSizeInWords)wchar_t*_DstBuf,__insize_t_DstSizeInWords,__in_zconstwchar_t*_VarName);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_wgetenv_s,__outsize_t*,_ReturnSize,__out_ecount(_Size)wchar_t,_Dest,__in_zconstwchar_t*,_VarName)_CRTIMP__checkReturn_waterrno_t__cdecl_wdupenv_s(__deref_out_ecount_z_opt(*_BufferSizeInWords)wchar_t**_Buffer,__out_optsize_t*_BufferSizeInWords,__in_zconstwchar_t*_VarName);#ifndef_CRT_WSYSTEM_DEFINED#define_CRT_WSYSTEM_DEFINED_CRTIMPint__cdecl_wsystem(__in_z_optconstwchar_t*_Command);#endif_CRTIMP__checkReturndouble__cdecl_wtof(__in_zconstwchar_t*_Str);_CRTIMP__checkReturndouble__cdecl_wtof_l(__in_zconstwchar_t*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnint__cdecl_wtoi(__in_zconstwchar_t*_Str);_CRTIMP__checkReturnint__cdecl_wtoi_l(__in_zconstwchar_t*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnlong__cdecl_wtol(__in_zconstwchar_t*_Str);_CRTIMP__checkReturnlong__cdecl_wtol_l(__in_zconstwchar_t*_Str,__in_opt_locale_t_Locale);
#if_INTEGRAL_MAX_BITS>=64_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_i64tow_s(__in__int64_Val,__out_ecount_z(_SizeInWords)wchar_t*_DstBuf,__insize_t_SizeInWords,__inint_Radix);_CRTIMP_CRT_INSECURE_DEPRECATE(_i65tow_s)wchar_t*__cdecl_i64tow(__in__int64_Val,__out_zwchar_t*_DstBuf,__inint_Radix);_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_ui64tow_s(__inunsigned__int64_Val,__out_ecount_z(_SizeInWords)wchar_t*_DstBuf,__insize_t_SizeInWords,__inint_Radix);_CRTIMP_CRT_INSECURE_DEPRECATE(_ui64tow_s)wchar_t*__cdecl_ui64tow(__inunsigned__int64_Val,__out_zwchar_t*_DstBuf,__inint_Radix);_CRTIMP__checkReturn__int64__cdecl_wtoi64(__in_zconstwchar_t*_Str);_CRTIMP__checkReturn__int64__cdecl_wtoi64_l(__in_zconstwchar_t*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturn__int64__cdecl_wcstoi64(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,__inint_Radix);_CRTIMP__checkReturn__int64__cdecl_wcstoi64_l(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);_CRTIMP__checkReturnunsigned__int64__cdecl_wcstoui64(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,__inint_Radix);_CRTIMP__checkReturnunsigned__int64__cdecl_wcstoui64_l(__in_zconstwchar_t*_Str,__deref_opt_out_zwchar_t**_EndPtr,__inint_Radix,__in_opt_locale_t_Locale);#endif
#define_WSTDLIB_DEFINED#endif
/**Buffersizerequiredtobepassedto_gcvt,fcvtandotherfpconversionroutines*/#define_CVTBUFSIZE(309+40)/**#ofdigitsinmax.dpvalue+slop*/
#if(defined(_DEBUG)||defined(_SYSCRT_DEBUG))&&defined(_CRTDBG_MAP_ALLOC)#pragmapush_macro("_fullpath")#undef_fullpath#endif
_CRTIMP__checkReturnchar*__cdecl_fullpath(__out_ecount_z_opt(_SizeInBytes)char*_FullPath,__in_zconstchar*_Path,__insize_t_SizeInBytes);
#if(defined(_DEBUG)||defined(_SYSCRT_DEBUG))&&defined(_CRTDBG_MAP_ALLOC)#pragmapop_macro("_fullpath")#endif
_CRTIMP_ALT__checkReturn_waterrno_t__cdecl_ecvt_s(__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__indouble_Val,__inint_NumOfDights,__outint*_PtDec,__outint*_PtSign);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(errno_t,_ecvt_s,__out_ecount(_Size)char,_Dest,__indouble,_Value,__inint,_NumOfDigits,__outint*,_PtDec,__outint*,_PtSign)_CRTIMP_CRT_INSECURE_DEPRECATE(_ecvt_s)__checkReturnchar*__cdecl_ecvt(__indouble_Val,__inint_NumOfDigits,__outint*_PtDec,__outint*_PtSign);_CRTIMP__checkReturn_waterrno_t__cdecl_fcvt_s(__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__indouble_Val,__inint_NumOfDec,__outint*_PtDec,__outint*_PtSign);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(errno_t,_fcvt_s,__out_ecount(_Size)char,_Dest,__indouble,_Value,__inint,_NumOfDigits,__outint*,_PtDec,__outint*,_PtSign)_CRTIMP_CRT_INSECURE_DEPRECATE(_fcvt_s)__checkReturnchar*__cdecl_fcvt(__indouble_Val,__inint_NumOfDec,__outint*_PtDec,__outint*_PtSign);_CRTIMP_ALTerrno_t__ALTDECL_gcvt_s(__out_ecount_z(_Size)char*_DstBuf,__insize_t_Size,__indouble_Val,__inint_NumOfDigits);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t,_gcvt_s,__out_ecount(_Size)char,_Dest,__indouble,_Value,__inint,_NumOfDigits)_CRTIMP_CRT_INSECURE_DEPRECATE(_gcvt_s)char*__cdecl_gcvt(__indouble_Val,__inint_NumOfDigits,__out_zchar*_DstBuf);
_CRTIMP__checkReturnint__cdecl_atodbl(__out_CRT_DOUBLE*_Result,__in_zchar*_Str);_CRTIMP__checkReturnint__cdecl_atoldbl(__out_LDOUBLE*_Result,__in_zchar*_Str);_CRTIMP__checkReturnint__cdecl_atoflt(__out_CRT_FLOAT*_Result,__in_zchar*_Str);_CRTIMP__checkReturnint__cdecl_atodbl_l(__out_CRT_DOUBLE*_Result,__in_zchar*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnint__cdecl_atoldbl_l(__out_LDOUBLE*_Result,__in_zchar*_Str,__in_opt_locale_t_Locale);_CRTIMP__checkReturnint__cdecl_atoflt_l(__out_CRT_FLOAT*_Result,__in_zchar*_Str,__in_opt_locale_t_Locale);__checkReturnunsignedlong__cdecl_lrotl(__inunsignedlong_Val,__inint_Shift);__checkReturnunsignedlong__cdecl_lrotr(__inunsignedlong_Val,__inint_Shift);_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_makepath_s(__out_ecount_z(_Size)char*_PathResult,__in_optsize_t_Size,__in_z_optconstchar*_Drive,__in_z_optconstchar*_Dir,__in_z_optconstchar*_Filename,__in_z_optconstchar*_Ext);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(errno_t,_makepath_s,__out_ecount(_Size)char,_Path,__in_z_optconstchar*,_Drive,__in_z_optconstchar*,_Dir,__in_z_optconstchar*,_Filename,__in_z_optconstchar*,_Ext)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4(void,__RETURN_POLICY_VOID,_CRTIMP,_makepath,__out_zchar,_Path,__in_z_optconstchar*,_Drive,__in_z_optconstchar*,_Dir,__in_z_optconstchar*,_Filename,__in_z_optconstchar*,_Ext)
#if_MSC_VER>=1400&&defined(_M_CEE)_onexit_m_t__clrcall_onexit_m_appdomain(_onexit_m_t_Function);#ifdefined(_M_CEE_MIXED)_onexit_m_t__clrcall_onexit_m(_onexit_m_t_Function);#elseinline_onexit_m_t__clrcall_onexit_m(_onexit_t_Function){return_onexit_m_appdomain(_Function);}#endif#endif#ifdefined(_M_CEE_PURE)/**Inpuremode,_onexitisthesameas_onexit_m_appdomain*/extern"C++"{inline_onexit_t__clrcall_onexit(_onexit_t_Function){return_onexit_m_appdomain(_Function);}}#else_onexit_t__cdecl_onexit(__in_opt_onexit_t_Func);#endif#ifndef_CRT_PERROR_DEFINED#define_CRT_PERROR_DEFINED_CRTIMPvoid__cdeclperror(__in_z_optconstchar*_ErrMsg);#endif_CRTIMP__checkReturnint__cdecl_putenv(__in_zconstchar*_EnvString);_CRTIMP__checkReturn_waterrno_t__cdecl_putenv_s(__in_zconstchar*_Name,__in_zconstchar*_Value);__checkReturnunsignedint__cdecl_rotl(__inunsignedint_Val,__inint_Shift);#if_INTEGRAL_MAX_BITS>=64__checkReturnunsigned__int64__cdecl_rotl64(__inunsigned__int64_Val,__inint_Shift);#endif__checkReturnunsignedint__cdecl_rotr(__inunsignedint_Val,__inint_Shift);#if_INTEGRAL_MAX_BITS>=64__checkReturnunsigned__int64__cdecl_rotr64(__inunsigned__int64_Val,__inint_Shift);#endif_CRTIMPerrno_t__cdecl_searchenv_s(__in_zconstchar*_Filename,__in_zconstchar*_EnvVar,__out_ecount_z(_SizeInBytes)char*_ResultPath,__insize_t_SizeInBytes);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0(errno_t,_searchenv_s,__in_zconstchar*,_Filename,__in_zconstchar*,_EnvVar,__out_ecount(_Size)char,_ResultPath)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0(void,__RETURN_POLICY_VOID,_CRTIMP,_searchenv,__in_zconstchar*,_Filename,__in_zconstchar*,_EnvVar,__out_zchar,_ResultPath)
_CRT_INSECURE_DEPRECATE(_splitpath_s)_CRTIMPvoid__cdecl_splitpath(__in_zconstchar*_FullPath,__out_z_optchar*_Drive,__out_z_optchar*_Dir,__out_z_optchar*_Filename,__out_z_optchar*_Ext);_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_splitpath_s(__in_zconstchar*_FullPath,__out_ecount_z_opt(_DriveSize)char*_Drive,__insize_t_DriveSize,__out_ecount_z_opt(_DirSize)char*_Dir,__insize_t_DirSize,__out_ecount_z_opt(_FilenameSize)char*_Filename,__insize_t_FilenameSize,__out_ecount_z_opt(_ExtSize)char*_Ext,__insize_t_ExtSize);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH(errno_t,_splitpath_s,char,_Dest)
_CRTIMPvoid__cdecl_swab(__inout_ecount_full(_SizeInBytes)char*_Buf1,__inout_ecount_full(_SizeInBytes)char*_Buf2,int_SizeInBytes);
#ifndef_WSTDLIBP_DEFINED
/**widefunctionprototypes,alsodeclaredinwchar.h*/
#if(defined(_DEBUG)||defined(_SYSCRT_DEBUG))&&defined(_CRTDBG_MAP_ALLOC)#pragmapush_macro("_wfullpath")#undef_wfullpath#endif
_CRTIMP__checkReturnwchar_t*__cdecl_wfullpath(__out_ecount_z_opt(_SizeInWords)wchar_t*_FullPath,__in_zconstwchar_t*_Path,__insize_t_SizeInWords);
#if(defined(_DEBUG)||defined(_SYSCRT_DEBUG))&&defined(_CRTDBG_MAP_ALLOC)#pragmapop_macro("_wfullpath")#endif
_CRTIMP_ALT__checkReturn_waterrno_t__ALTDECL_wmakepath_s(__out_ecount_z(_SizeInWords)wchar_t*_PathResult,__in_optsize_t_SizeInWords,__in_z_optconstwchar_t*_Drive,__in_z_optconstwchar_t*_Dir,__in_z_optconstwchar_t*_Filename,__in_z_optconstwchar_t*_Ext);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(errno_t,_wmakepath_s,__out_ecount(_Size)wchar_t,_ResultPath,__in_z_optconstwchar_t*,_Drive,__in_z_optconstwchar_t*,_Dir,__in_z_optconstwchar_t*,_Filename,__in_z_optconstwchar_t*,_Ext)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4(void,__RETURN_POLICY_VOID,_CRTIMP,_wmakepath,__out_zwchar_t,_ResultPath,__in_z_optconstwchar_t*,_Drive,__in_z_optconstwchar_t*,_Dir,__in_z_optconstwchar_t*,_Filename,__in_z_optconstwchar_t*,_Ext)#ifndef_CRT_WPERROR_DEFINED#define_CRT_WPERROR_DEFINED_CRTIMPvoid__cdecl_wperror(__in_z_optconstwchar_t*_ErrMsg);#endif_CRTIMP__checkReturnint__cdecl_wputenv(__in_zconstwchar_t*_EnvString);_CRTIMP__checkReturn_waterrno_t__cdecl_wputenv_s(__in_zconstwchar_t*_Name,__in_zconstwchar_t*_Value);_CRTIMPerrno_t__cdecl_wsearchenv_s(__in_zconstwchar_t*_Filename,__in_zconstwchar_t*_EnvVar,__out_ecount_z(_SizeInWords)wchar_t*_ResultPath,__insize_t_SizeInWords);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0(errno_t,_wsearchenv_s,__in_zconstwchar_t*,_Filename,__in_zconstwchar_t*,_EnvVar,__out_ecount(_Size)wchar_t,_ResultPath)__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0(void,__RETURN_POLICY_VOID,_CRTIMP,_wsearchenv,__in_zconstwchar_t*,_Filename,__in_zconstwchar_t*,_EnvVar,__out_zwchar_t,_ResultPath)_CRT_INSECURE_DEPRECATE(_wsplitpath_s)_CRTIMPvoid__cdecl_wsplitpath(__in_zconstwchar_t*_FullPath,__out_z_optwchar_t*_Drive,__out_z_optwchar_t*_Dir,__out_z_optwchar_t*_Filename,__out_z_optwchar_t*_Ext);_CRTIMP_ALTerrno_t__ALTDECL_wsplitpath_s(__in_zconstwchar_t*_FullPath,__out_ecount_z_opt(_DriveSizeInWords)wchar_t*_Drive,__insize_t_DriveSizeInWords,__out_ecount_z_opt(_DirSizeInWords)wchar_t*_Dir,__insize_t_DirSizeInWords,__out_ecount_z_opt(_FilenameSizeInWords)wchar_t*_Filename,__insize_t_FilenameSizeInWords,__out_ecount_z_opt(_ExtSizeInWords)wchar_t*_Ext,__insize_t_ExtSizeInWords);__DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH(errno_t,_wsplitpath_s,wchar_t,_Path)
#define_WSTDLIBP_DEFINED#endif
/**TheWin32APISetErrorMode,BeepandSleepshouldbeusedinstead.*/_CRT_OBSOLETE(SetErrorMode)_CRTIMPvoid__cdecl_seterrormode(__inint_Mode);_CRT_OBSOLETE(Beep)_CRTIMPvoid__cdecl_beep(__inunsigned_Frequency,__inunsigned_Duration);_CRT_OBSOLETE(Sleep)_CRTIMPvoid__cdecl_sleep(__inunsignedlong_Duration);
#if!__STDC__
/**Non-ANSInamesforcompatibility*/
#ifndef__cplusplus#definemax(a,b)(((a)>(b))?(a):(b))#definemin(a,b)(((a)<(b))?(a):(b))#endif
#definesys_errlist_sys_errlist#definesys_nerr_sys_nerr#defineenviron_environ
#pragmawarning(push)#pragmawarning(disable:4141)/**Usingdeprecatedtwice*/_CRT_NONSTDC_DEPRECATE(_ecvt)_CRT_INSECURE_DEPRECATE(_ecvt_s)_CRTIMP__checkReturnchar*__cdeclecvt(__indouble_Val,__inint_NumOfDigits,__outint*_PtDec,__outint*_PtSign);_CRT_NONSTDC_DEPRECATE(_fcvt)_CRT_INSECURE_DEPRECATE(_fcvt_s)_CRTIMP__checkReturnchar*__cdeclfcvt(__indouble_Val,__inint_NumOfDec,__outint*_PtDec,__outint*_PtSign);_CRT_NONSTDC_DEPRECATE(_gcvt)_CRT_INSECURE_DEPRECATE(_fcvt_s)_CRTIMPchar*__cdeclgcvt(__indouble_Val,__inint_NumOfDigits,__out_zchar*_DstBuf);_CRT_NONSTDC_DEPRECATE(_itoa)_CRT_INSECURE_DEPRECATE(_itoa_s)_CRTIMPchar*__cdeclitoa(__inint_Val,__out_zchar*_DstBuf,__inint_Radix);_CRT_NONSTDC_DEPRECATE(_ltoa)_CRT_INSECURE_DEPRECATE(_ltoa_s)_CRTIMPchar*__cdeclltoa(__inlong_Val,__out_zchar*_DstBuf,__inint_Radix);_CRT_NONSTDC_DEPRECATE(_putenv)_CRTIMP__checkReturnint__cdeclputenv(__in_zconstchar*_EnvString);_CRT_NONSTDC_DEPRECATE(_swab)_CRTIMPvoid__cdeclswab(__inout_bcount_z(_SizeInBytes)char*_Buf1,__inout_bcount_z(_SizeInBytes)char*_Buf2,__inint_SizeInBytes);_CRT_NONSTDC_DEPRECATE(_ultoa)_CRT_INSECURE_DEPRECATE(_ultoa_s)_CRTIMPchar*__cdeclultoa(__inunsignedlong_Val,__out_zchar*_Dstbuf,__inint_Radix);#pragmawarning(pop)onexit_t__cdeclonexit(__in_optonexit_t_Func);
#endif/**__STDC__*/
#ifdef__cplusplus}
#endif
#ifdef_MSC_VER#pragmapack(pop)#endif/**_MSC_VER*/
#endif/**_INC_STDLIB*//**88bf0570-3001-4e78-a5f2-be5765546192*/


包含的函数:
输入样式:C语言模式:#include <stdlib.h>
C++样式:#include <cstdlib>
1函数名称:calloc
函数原型: void calloc(unsigned n,unsigned size);
函数功能: 分配n个数据项的内存连续空间,每个数据项的大小为size
函数返回: 分配内存单元的起始地址,如果不成功,返回0
2函数名称:free
函数原型: void free(void* p);
函数功能: 释放p所指的内存区
函数返回:
参数说明: p-被释放的指针
3函数名称:malloc
函数原型: void * malloc(unsigned size);
函数功能: 分配size字节的存储区
函数返回: 所分配的内存区地址,如果内存不够,返回0
4函数名称: realloc
函数原型: void * realloc(void * p,unsigned size);
函数功能: 将p所指出的已分配内存区的大小改为size,size可以比原来分配的空间大或小
函数返回: 返回指向该内存区的指针.NULL-分配失败
5函数名称: rand
函数原型: int rand(void);
函数功能: 产生0到32767间的随机整数(0到0x7fff之间)
函数返回: 随机整数
6函数名称: abort
函数原型: void abort(void)
函数功能: 异常终止一个进程.
7函数名称: exit
函数原型: void exit(int state)
函数功能: 程序中止执行,返回调用过程
函数返回:
参数说明: state:0-正常中止,非0-非正常中止
8函数名称: getenv
函数原型: char* getenv(const char *name)
函数功能: 返回一个指向环境变量的指针
函数返回:环境变量的定义
参数说明: name-环境字符串
9函数名称: putenv
函数原型: int putenv(const char *name)
函数功能: 将字符串name增加到DOS环境变量中
函数返回: 0:操作成功,-1:操作失败
参数说明: name-环境字符串
10函数名称: labs
函数原型: long labs(long num)
函数功能: 求长整型参数的绝对值
函数返回:绝对值
11函数名称: atof
函数原型: double atof(char *str)
函数功能: 将字符串转换成一个双精度数值
函数返回: 转换后的数值
参数说明: str-待转换浮点型数的字符串
12函数名称: atoi
函数原型: int atoi(char *str)
函数功能: 将字符串转换成一个整数值
函数返回: 转换后的数值
参数说明: str-待转换为整型数的字符串
13函数名称: atol
函数原型: long atol(char *str)
函数功能: 将字符串转换成一个长整数
函数返回: 转换后的数值
参数说明: str-待转换为长整型的字符串
14函数名称:ecvt
函数原型: char *ecvt(double value,int ndigit,int *dec,int *sign)
函数功能: 将浮点数转换为字符串
函数返回: 转换后的字符串指针
参数说明: value-待转换底浮点数,ndigit-转换后的字符串长度
15函数名称:fcvt
函数原型: char *fcvt(double value,int ndigit,int *dec,int *sign)
函数功能: 将浮点数变成一个字符串
函数返回: 转换后字符串指针
参数说明: value-待转换底浮点数,ndigit-转换后底字符串长度

  • 9
    点赞
  • 31
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值