<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # C 標準庫 - &lt;stdlib.h&gt; ## 簡介 **stdlib .h** 頭文件定義了四個變量類型、一些宏和各種通用工具函數。 ## 庫變量 下面是頭文件 stdlib.h 中定義的變量類型: | 變量 | 描述 | | --- | --- | | **size_t** | 這是無符號整數類型,它是 **sizeof** 關鍵字的結果。 | | **wchar_t** | 這是一個寬字符常量大小的整數類型。 | | **div_t** | 這是 **div** 函數返回的結構。 | | **ldiv_t** | 這是 **ldiv** 函數返回的結構。 | ## 庫宏 下面是頭文件 stdlib.h 中定義的宏: | 宏 | 描述 | | --- | --- | | **NULL** | 這個宏是一個空指針常量的值。 | | **EXIT_FAILURE** | 這是 exit 函數失敗時要返回的值。 | | **EXIT_SUCCESS** | 這是 exit 函數成功時要返回的值。 | | **RAND_MAX** | 這個宏是 rand 函數返回的最大值。 | | **MB_CUR_MAX** | 這個宏表示在多字節字符集中的最大字符數,不能大于 MB_LEN_MAX。 | ## 庫函數 下面是頭文件 stdlib.h 中定義的函數: | 函數 | 描述 | | --- | --- | | [double atof(const char \*str)](c-function-atof.html) | 把參數 _str_ 所指向的字符串轉換為一個浮點數(類型為 double 型)。 | | [int atoi(const char \*str)](c-function-atoi.html) | 把參數 _str_ 所指向的字符串轉換為一個整數(類型為 int 型)。 | | [long int atol(const char \*str)](c-function-atol.html) | 把參數 _str_ 所指向的字符串轉換為一個長整數(類型為 long int 型)。 | | [double strtod(const char \*str, char \*\*endptr)](c-function-strtod.html) | 把參數 _str_ 所指向的字符串轉換為一個浮點數(類型為 double 型)。 | | [long int strtol(const char \*str, char \*\*endptr, int base)](c-function-strtol.html) | 把參數 _str_ 所指向的字符串轉換為一個長整數(類型為 long int 型)。 | | [unsigned long int strtoul(const char \*str, char \*\*endptr, int base)](c-function-strtoul.html) | 把參數 _str_ 所指向的字符串轉換為一個無符號長整數(類型為 unsigned long int 型)。 | | [void \*calloc(size_t nitems, size_t size)](c-function-calloc.html) | 分配所需的內存空間,并返回一個指向它的指針。 | | [void free(void \*ptr](c-function-free.html) | 釋放之前調用 _calloc、malloc_ 或 _realloc_ 所分配的內存空間。 | | [void \*malloc(size_t size)](c-function-malloc.html) | 分配所需的內存空間,并返回一個指向它的指針。 | | [void \*realloc(void \*ptr, size_t size)](c-function-realloc.html) | 嘗試重新調整之前調用 _malloc_ or _calloc_ 所分配的 ptr 所指向的內存塊的大小。 | | [void abort(void)](c-function-abort.html) | 使一個異常程序終止。 | | [int atexit(void (\*func)(void))](c-function-atexit.html) | 當程序正常終止時,調用指定的函數 \*\*func\*\*。 | | [void exit(int status)](c-function-exit.html) | 是程序正常終止。 | | [char \*getenv(const char \*name)](c-function-getenv.html) | 搜索 name 所指向的環境字符串,并返回相關的值給字符串。 | | [int system(const char \*string)](c-function-system.html) | 由 string 指定的命令傳給要被命令處理器執行的主機環境。 | | [void \*bsearch(const void \*key, const void \*base, size_t nitems, size_t size, int (\*compar)(const void \*, const void \*))](c-function-bsearch.html) | 執行二進制搜索。 | | [void qsort(void \*base, size_t nitems, size_t size, int (\*compar)(const void \*, const void\*))](c-function-qsort.html) | 數組排序。 | | [int abs(int x)](c-function-abs.html) | 返回 x 的絕對值。 | | [div_t div(int numer, int denom)](c-function-div.html) | 分子除以分母。 | | [long int labs(long int x)](c-function-labs.html) | 返回 x 的絕對值。 | | [ldiv_t ldiv(long int numer, long int denom)](c-function-ldiv.html) | 分子除以分母。 | | [int rand(void)](c-function-rand.html) | 返回一個范圍在 0 到 _RAND_MAX_ 之間的偽隨機數。 | | [void srand(unsigned int seed)](c-function-srand.html) | 該函數播種由函數 \*\*rand\*\* 使用的隨機數發生器。 | | [int mblen(const char \*str, size_t n)](c-function-mblen.html) | 返回參數 _str_ 所指向的多字節字符的長度。 | | [size_t mbstowcs(schar_t \*pwcs, const char \*str, size_t n)](c-function-mbstowcs.html) | 把參數 _str_ 所指向的多字節字符的字符串轉換為參數 _pwcs_ 所指向的數組。 | | [int mbtowc(whcar_t \*pwc, const char \*str, size_t n)](c-function-mbtowc.html) | 檢查參數 _str_ 所指向的多字節字符。 | | [size_t wcstombs(char \*str, const wchar_t \*pwcs, size_t n)](c-function-wcstombs.html) | 把數組 _pwcs_ 中存儲的編碼轉換為多字節字符,并把它們存儲在字符串 _str_ 中。 | | [int wctomb(char \*str, wchar_t wchar)](c-function-wctomb.html) | 檢查對應于參數 _wchar_ 所給出的多字節字符的編碼。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看