📄 stdlib.h.html
字号:
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));int rand(void);<sup>[<a href="javascript:open_code('TSF')">TSF</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int rand_r(unsigned *);<img src="../images/opt-end.gif" alt="[Option End]" border="0"><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">long random(void);<img src="../images/opt-end.gif" alt="[Option End]" border="0">void *realloc(void *, size_t);<sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">char *realpath(const char *restrict, char *restrict);unsigned short seed48(unsigned short[3]);<img src="../images/opt-end.gif" alt="[Option End]" border="0"><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int setenv(const char *, const char *, int);<img src="../images/opt-end.gif" alt="[Option End]" border="0"><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">void setkey(const char *);char *setstate(const char *);<img src="../images/opt-end.gif" alt="[Option End]" border="0">void srand(unsigned);<sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">void srand48(long);void srandom(unsigned);<img src="../images/opt-end.gif" alt="[Option End]" border="0">double strtod(const char *restrict, char **restrict);float strtof(const char *restrict, char **restrict);long strtol(const char *restrict, char **restrict, int);long double strtold(const char *restrict, char **restrict);long long strtoll(const char *restrict, char **restrict, int);unsigned long strtoul(const char *restrict, char **restrict, int);unsigned long long strtoull(const char *restrict, char **restrict, int);int system(const char *);<sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int unlockpt(int);<img src="../images/opt-end.gif" alt="[Option End]" border="0"><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int unsetenv(const char *);<img src="../images/opt-end.gif" alt="[Option End]" border="0">size_t wcstombs(char *restrict, const wchar_t *restrict, size_t);int wctomb(char *, wchar_t);</tt></pre><p><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Inclusion of the <i><stdlib.h></i> header may also make visible all symbols from <a href="../basedefs/stddef.h.html"><i><stddef.h></i></a>, <a href="../basedefs/limits.h.html"><i><limits.h></i></a>, <a href="../basedefs/math.h.html"><i><math.h></i></a>, and <a href="../basedefs/sys/wait.h.html"><i><sys/wait.h></i></a>. <imgsrc="../images/opt-end.gif" alt="[Option End]" border="0"></p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_50_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_50_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_50_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_50_07"></a>SEE ALSO</h4><blockquote><p><a href="limits.h.html"><i><limits.h></i></a> , <a href="math.h.html"><i><math.h></i></a> , <a href="stddef.h.html"><i><stddef.h></i></a> , <a href="sys/types.h.html"><i><sys/types.h></i></a> , <a href="sys/wait.h.html"><i><sys/wait.h></i></a> , the System Interfaces volume of IEEE Std 1003.1-2001, <a href="../functions/_Exit.html"><i>_Exit</i>()</a>, <a href="../functions/a64l.html"><i>a64l</i>()</a>, <a href="../functions/abort.html"><i>abort</i>()</a>, <a href="../functions/abs.html"><i>abs</i>()</a>, <a href="../functions/atexit.html"><i>atexit</i>()</a>, <a href="../functions/atof.html"><i>atof</i>()</a>, <a href="../functions/atoi.html"><i>atoi</i>()</a>, <a href="../functions/atol.html"><i>atol</i>()</a>, <a href="../functions/atoll.html"><i>atoll</i>()</a>, <a href="../functions/bsearch.html"><i>bsearch</i>()</a>, <a href="../functions/calloc.html"><i>calloc</i>()</a>, <a href="../functions/div.html"><i>div</i>()</a>, <a href="../functions/drand48.html"><i>drand48</i>()</a>, <a href="../functions/erand48.html"><i>erand48</i>()</a>, <a href="../functions/exit.html"><i>exit</i>()</a>, <a href="../functions/free.html"><i>free</i>()</a>, <a href="../functions/getenv.html"><i>getenv</i>()</a>, <a href="../functions/getsubopt.html"><i>getsubopt</i>()</a>, <a href="../functions/grantpt.html"><i>grantpt</i>()</a>, <a href="../functions/initstate.html"><i>initstate</i>()</a>, <a href="../functions/jrand48.html"><i>jrand48</i>()</a>, <a href="../functions/l64a.html"><i>l64a</i>()</a>, <a href="../functions/labs.html"><i>labs</i>()</a>, <a href="../functions/lcong48.html"><i>lcong48</i>()</a>, <a href="../functions/ldiv.html"><i>ldiv</i>()</a>, <a href="../functions/llabs.html"><i>llabs</i>()</a>, <a href="../functions/lldiv.html"><i>lldiv</i>()</a>, <a href="../functions/lrand48.html"><i>lrand48</i>()</a>, <a href="../functions/malloc.html"><i>malloc</i>()</a>, <a href="../functions/mblen.html"><i>mblen</i>()</a>, <a href="../functions/mbstowcs.html"><i>mbstowcs</i>()</a>, <a href="../functions/mbtowc.html"><i>mbtowc</i>()</a>, <a href="../functions/mkstemp.html"><i>mkstemp</i>()</a>, <a href="../functions/mrand48.html"><i>mrand48</i>()</a>, <a href="../functions/nrand48.html"><i>nrand48</i>()</a>, <a href="../functions/posix_memalign.html"><i>posix_memalign</i>()</a>, <a href="../functions/ptsname.html"><i>ptsname</i>()</a>, <a href="../functions/putenv.html"><i>putenv</i>()</a>, <a href="../functions/qsort.html"><i>qsort</i>()</a>, <a href="../functions/rand.html"><i>rand</i>()</a>, <a href="../functions/realloc.html"><i>realloc</i>()</a>, <a href="../functions/realpath.html"><i>realpath</i>()</a>, <a href="../functions/setstate.html"><i>setstate</i>()</a>, <a href="../functions/srand.html"><i>srand</i>()</a>, <a href="../functions/srand48.html"><i>srand48</i>()</a>, <a href="../functions/srandom.html"><i>srandom</i>()</a>, <a href="../functions/strtod.html"><i>strtod</i>()</a>, <a href="../functions/strtof.html"><i>strtof</i>()</a>, <a href="../functions/strtol.html"><i>strtol</i>()</a>, <a href="../functions/strtold.html"><i>strtold</i>()</a>, <a href="../functions/strtoll.html"><i>strtoll</i>()</a>, <a href="../functions/strtoul.html"><i>strtoul</i>()</a>, <a href="../functions/strtoull.html"><i>strtoull</i>()</a>, <a href="../functions/unlockpt.html"><i>unlockpt</i>()</a>, <a href="../functions/wcstombs.html"><i>wcstombs</i>()</a>, <a href="../functions/wctomb.html"><i>wctomb</i>()</a></p></blockquote><h4><a name="tag_13_50_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 3.</p></blockquote><h4><a name="tag_13_50_09"></a>Issue 5</h4><blockquote><p>The DESCRIPTION is updated for alignment with the POSIX Threads Extension.</p><p>The <i>ttyslot</i>() and <i>valloc</i>() functions are marked LEGACY.</p><p>The type of the third argument to <a href="../functions/initstate.html"><i>initstate</i>()</a> is changed from <b>int</b> to<b>size_t</b>. The type of the return value from <a href="../functions/setstate.html"><i>setstate</i>()</a> is changed from<b>char</b> to <b>char *</b>, and the type of the first argument is changed from <b>char *</b> to <b>const char *</b>.</p></blockquote><h4><a name="tag_13_50_10"></a>Issue 6</h4><blockquote><p>The Open Group Corrigendum U021/1 is applied, correcting the prototype for <a href="../functions/realpath.html"><i>realpath</i>()</a> to be consistent with the reference page.</p><p>The Open Group Corrigendum U028/13 is applied, correcting the prototype for <a href="../functions/putenv.html"><i>putenv</i>()</a> to be consistent with the reference page.</p><p>The <a href="../functions/rand_r.html"><i>rand_r</i>()</a> function is marked as part of the Thread-Safe Functions option.</p><p>Function prototypes for <a href="../functions/setenv.html"><i>setenv</i>()</a> and <a href="../functions/unsetenv.html"><i>unsetenv</i>()</a> are added.</p><p>The <a href="../functions/posix_memalign.html"><i>posix_memalign</i>()</a> function is added for alignment withIEEE Std 1003.1d-1999.</p><p>This reference page is updated to align with the ISO/IEC 9899:1999 standard.</p><p>The <a href="../functions/ecvt.html"><i>ecvt</i>()</a>, <a href="../functions/fcvt.html"><i>fcvt</i>()</a>, <a href="../functions/gcvt.html"><i>gcvt</i>()</a>, and <a href="../functions/mktemp.html"><i>mktemp</i>()</a> functions are markedLEGACY.</p><p>The <i>ttyslot</i>() and <i>valloc</i>() functions are removed as they were previously marked LEGACY.</p><p>Extensions beyond the ISO C standard are marked.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -