关于#include的使用

关于#include 的使用
      #include<stdlib.h>是C语言中的一个头文件,首先,stdlib.h的解释
*Purpose:
* This include file contains the function declarations for commonly
* used library functions which either don't fit somewhere else, or,
* cannot be declared in the normal place for other reasons.

    意思是一些常用的函数,但是又不知道把它们放到哪里合适,因此就都放到了stdlib.h这个头文件中。
stdlib.h可以提供一些函数与符号常量,具体如下:
根据ISO标准,stdlib.h提供以下类型:
size_t, wchar_t, div_t, ldiv_t, lldiv_t

常量
NULL, EXIT_FAILURE, EXIT_SUCESS, RAND_MAX, MB_CUR_MAX
函数
atof, atoi, atol, strtod, strtof, strtols, strtol, strtoll, strtoul, strtoull, rand, srand, callc, free, maloc, realloc, abort, atexit, exit, getenv, system, bsearch, qsort, abs, div, labs, ldiv, llabs, tlldiv, mblen, mbtowc, wctomb, mbstowcs, wcstombs

你可能感兴趣的:(关于#include的使用)