|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Stdlib (The Red Hat newlib C Library)</title>
-
- <meta name="description" content="Stdlib (The Red Hat newlib C Library)">
- <meta name="keywords" content="Stdlib (The Red Hat newlib C Library)">
- <meta name="resource-type" content="document">
- <meta name="distribution" content="global">
- <meta name="Generator" content="makeinfo">
- <link href="index.html#Top" rel="start" title="Top">
- <link href="Document-Index.html#Document-Index" rel="index" title="Document Index">
- <link href="Document-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
- <link href="index.html#Top" rel="up" title="Top">
- <link href="_005fExit.html#g_t_005fExit" rel="next" title="_Exit">
- <link href="Introduction.html#Introduction" rel="prev" title="Introduction">
- <style type="text/css">
- <!--
- a.summary-letter {text-decoration: none}
- blockquote.indentedblock {margin-right: 0em}
- blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
- blockquote.smallquotation {font-size: smaller}
- div.display {margin-left: 3.2em}
- div.example {margin-left: 3.2em}
- div.lisp {margin-left: 3.2em}
- div.smalldisplay {margin-left: 3.2em}
- div.smallexample {margin-left: 3.2em}
- div.smalllisp {margin-left: 3.2em}
- kbd {font-style: oblique}
- pre.display {font-family: inherit}
- pre.format {font-family: inherit}
- pre.menu-comment {font-family: serif}
- pre.menu-preformatted {font-family: serif}
- pre.smalldisplay {font-family: inherit; font-size: smaller}
- pre.smallexample {font-size: smaller}
- pre.smallformat {font-family: inherit; font-size: smaller}
- pre.smalllisp {font-size: smaller}
- span.nolinebreak {white-space: nowrap}
- span.roman {font-family: initial; font-weight: normal}
- span.sansserif {font-family: sans-serif; font-weight: normal}
- ul.no-bullet {list-style: none}
- -->
- </style>
-
-
- </head>
-
- <body lang="en">
- <a name="Stdlib"></a>
- <div class="header">
- <p>
- Next: <a href="Ctype.html#Ctype" accesskey="n" rel="next">Ctype</a>, Previous: <a href="Introduction.html#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="Document-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Document-Index.html#Document-Index" title="Index" rel="index">Index</a>]</p>
- </div>
- <hr>
- <a name="Standard-Utility-Functions-_0028stdlib_002eh_0029"></a>
- <h2 class="chapter">2 Standard Utility Functions (<samp>stdlib.h</samp>)</h2>
-
- <p>This chapter groups utility functions useful in a variety of programs.
- The corresponding declarations are in the header file <samp>stdlib.h</samp>.
- </p>
- <table class="menu" border="0" cellspacing="0">
- <tr><td align="left" valign="top">• <a href="_005fExit.html#g_t_005fExit" accesskey="1">_Exit</a>:</td><td> </td><td align="left" valign="top">End program execution without cleaning up
- </td></tr>
- <tr><td align="left" valign="top">• <a href="a64l.html#a64l" accesskey="2">a64l</a>:</td><td> </td><td align="left" valign="top">String to long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="abort.html#abort" accesskey="3">abort</a>:</td><td> </td><td align="left" valign="top">Abnormal termination of a program
- </td></tr>
- <tr><td align="left" valign="top">• <a href="abs.html#abs" accesskey="4">abs</a>:</td><td> </td><td align="left" valign="top">Integer absolute value (magnitude)
- </td></tr>
- <tr><td align="left" valign="top">• <a href="assert.html#assert" accesskey="5">assert</a>:</td><td> </td><td align="left" valign="top">Macro for Debugging Diagnostics
- </td></tr>
- <tr><td align="left" valign="top">• <a href="atexit.html#atexit" accesskey="6">atexit</a>:</td><td> </td><td align="left" valign="top">Request execution of functions at program exit
- </td></tr>
- <tr><td align="left" valign="top">• <a href="atof.html#atof" accesskey="7">atof</a>:</td><td> </td><td align="left" valign="top">String to double or float
- </td></tr>
- <tr><td align="left" valign="top">• <a href="atoi.html#atoi" accesskey="8">atoi</a>:</td><td> </td><td align="left" valign="top">String to integer
- </td></tr>
- <tr><td align="left" valign="top">• <a href="atoll.html#atoll" accesskey="9">atoll</a>:</td><td> </td><td align="left" valign="top">String to long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="bsearch.html#bsearch">bsearch</a>:</td><td> </td><td align="left" valign="top">Binary search
- </td></tr>
- <tr><td align="left" valign="top">• <a href="calloc.html#calloc">calloc</a>:</td><td> </td><td align="left" valign="top">Allocate space for arrays
- </td></tr>
- <tr><td align="left" valign="top">• <a href="div.html#div">div</a>:</td><td> </td><td align="left" valign="top">Divide two integers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="ecvtbuf.html#ecvtbuf">ecvtbuf</a>:</td><td> </td><td align="left" valign="top">Double or float to string of digits
- </td></tr>
- <tr><td align="left" valign="top">• <a href="ecvt.html#ecvt">ecvt</a>:</td><td> </td><td align="left" valign="top">Double or float to string of digits (malloc result)
- </td></tr>
- <tr><td align="left" valign="top">• <a href="_005f_005fenv_005flock.html#g_t_005f_005fenv_005flock">__env_lock</a>:</td><td> </td><td align="left" valign="top">Lock environment list for getenv and setenv
- </td></tr>
- <tr><td align="left" valign="top">• <a href="gcvt.html#gcvt">gcvt</a>:</td><td> </td><td align="left" valign="top">Format double or float as string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="exit.html#exit">exit</a>:</td><td> </td><td align="left" valign="top">End program execution
- </td></tr>
- <tr><td align="left" valign="top">• <a href="getenv.html#getenv">getenv</a>:</td><td> </td><td align="left" valign="top">Look up environment variable
- </td></tr>
- <tr><td align="left" valign="top">• <a href="itoa.html#itoa">itoa</a>:</td><td> </td><td align="left" valign="top">Integer to string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="labs.html#labs">labs</a>:</td><td> </td><td align="left" valign="top">Long integer absolute value (magnitude)
- </td></tr>
- <tr><td align="left" valign="top">• <a href="ldiv.html#ldiv">ldiv</a>:</td><td> </td><td align="left" valign="top">Divide two long integers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="llabs.html#llabs">llabs</a>:</td><td> </td><td align="left" valign="top">Long long integer absolute value (magnitude)
- </td></tr>
- <tr><td align="left" valign="top">• <a href="lldiv.html#lldiv">lldiv</a>:</td><td> </td><td align="left" valign="top">Divide two long long integers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="malloc.html#malloc">malloc</a>:</td><td> </td><td align="left" valign="top">Allocate and manage memory (malloc, realloc, free)
- </td></tr>
- <tr><td align="left" valign="top">• <a href="mallinfo.html#mallinfo">mallinfo</a>:</td><td> </td><td align="left" valign="top">Get information about allocated memory
- </td></tr>
- <tr><td align="left" valign="top">• <a href="_005f_005fmalloc_005flock.html#g_t_005f_005fmalloc_005flock">__malloc_lock</a>:</td><td> </td><td align="left" valign="top">Lock memory pool for malloc and free
- </td></tr>
- <tr><td align="left" valign="top">• <a href="mbsrtowcs.html#mbsrtowcs">mbsrtowcs</a>:</td><td> </td><td align="left" valign="top">Convert a character string to a wide-character string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="mbstowcs.html#mbstowcs">mbstowcs</a>:</td><td> </td><td align="left" valign="top">Minimal multibyte string to wide string converter
- </td></tr>
- <tr><td align="left" valign="top">• <a href="mblen.html#mblen">mblen</a>:</td><td> </td><td align="left" valign="top">Minimal multibyte length
- </td></tr>
- <tr><td align="left" valign="top">• <a href="mbtowc.html#mbtowc">mbtowc</a>:</td><td> </td><td align="left" valign="top">Minimal multibyte to wide character converter
- </td></tr>
- <tr><td align="left" valign="top">• <a href="on_005fexit.html#on_005fexit">on_exit</a>:</td><td> </td><td align="left" valign="top">Request execution of functions at program exit
- </td></tr>
- <tr><td align="left" valign="top">• <a href="qsort.html#qsort">qsort</a>:</td><td> </td><td align="left" valign="top">Array sort
- </td></tr>
- <tr><td align="left" valign="top">• <a href="rand.html#rand">rand</a>:</td><td> </td><td align="left" valign="top">Pseudo-random numbers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="random.html#random">random</a>:</td><td> </td><td align="left" valign="top">Pseudo-random numbers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="rand48.html#rand48">rand48</a>:</td><td> </td><td align="left" valign="top">Uniformly distributed pseudo-random numbers
- </td></tr>
- <tr><td align="left" valign="top">• <a href="rpmatch.html#rpmatch">rpmatch</a>:</td><td> </td><td align="left" valign="top">Determine whether response is affirmative or negative
- </td></tr>
- <tr><td align="left" valign="top">• <a href="strtod.html#strtod">strtod</a>:</td><td> </td><td align="left" valign="top">String to double or float
- </td></tr>
- <tr><td align="left" valign="top">• <a href="strtol.html#strtol">strtol</a>:</td><td> </td><td align="left" valign="top">String to long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="strtoll.html#strtoll">strtoll</a>:</td><td> </td><td align="left" valign="top">String to long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="strtoul.html#strtoul">strtoul</a>:</td><td> </td><td align="left" valign="top">String to unsigned long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="strtoull.html#strtoull">strtoull</a>:</td><td> </td><td align="left" valign="top">String to unsigned long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcsrtombs.html#wcsrtombs">wcsrtombs</a>:</td><td> </td><td align="left" valign="top">Convert a wide-character string to a character string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstod.html#wcstod">wcstod</a>:</td><td> </td><td align="left" valign="top">Wide string to double or float
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstol.html#wcstol">wcstol</a>:</td><td> </td><td align="left" valign="top">Wide string to long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstoll.html#wcstoll">wcstoll</a>:</td><td> </td><td align="left" valign="top">Wide string to long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstoul.html#wcstoul">wcstoul</a>:</td><td> </td><td align="left" valign="top">Wide string to unsigned long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstoull.html#wcstoull">wcstoull</a>:</td><td> </td><td align="left" valign="top">Wide string to unsigned long long
- </td></tr>
- <tr><td align="left" valign="top">• <a href="system.html#system">system</a>:</td><td> </td><td align="left" valign="top">Execute command string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="utoa.html#utoa">utoa</a>:</td><td> </td><td align="left" valign="top">Unsigned integer to string
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wcstombs.html#wcstombs">wcstombs</a>:</td><td> </td><td align="left" valign="top">Minimal wide string to multibyte string converter
- </td></tr>
- <tr><td align="left" valign="top">• <a href="wctomb.html#wctomb">wctomb</a>:</td><td> </td><td align="left" valign="top">Minimal wide character to multibyte converter
- </td></tr>
- </table>
-
- <hr>
- <div class="header">
- <p>
- Next: <a href="Ctype.html#Ctype" accesskey="n" rel="next">Ctype</a>, Previous: <a href="Introduction.html#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="Document-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Document-Index.html#Document-Index" title="Index" rel="index">Index</a>]</p>
- </div>
-
-
-
- </body>
- </html>
|