1<html lang="en"> 2<head> 3<title>Stdlib - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="prev" href="Introduction.html#Introduction" title="Introduction"> 9<link rel="next" href="Ctype.html#Ctype" title="Ctype"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<meta http-equiv="Content-Style-Type" content="text/css"> 12<style type="text/css"><!-- 13 pre.display { font-family:inherit } 14 pre.format { font-family:inherit } 15 pre.smalldisplay { font-family:inherit; font-size:smaller } 16 pre.smallformat { font-family:inherit; font-size:smaller } 17 pre.smallexample { font-size:smaller } 18 pre.smalllisp { font-size:smaller } 19 span.sc { font-variant:small-caps } 20 span.roman { font-family:serif; font-weight:normal; } 21 span.sansserif { font-family:sans-serif; font-weight:normal; } 22--></style> 23<link rel="stylesheet" type="text/css" href="../cs.css"> 24</head> 25<body> 26<div class="node"> 27<a name="Stdlib"></a> 28<p> 29Next: <a rel="next" accesskey="n" href="Ctype.html#Ctype">Ctype</a>, 30Previous: <a rel="previous" accesskey="p" href="Introduction.html#Introduction">Introduction</a>, 31Up: <a rel="up" accesskey="u" href="index.html#Top">Top</a> 32<hr> 33</div> 34 35<h2 class="chapter">2 Standard Utility Functions (<samp><span class="file">stdlib.h</span></samp>)</h2> 36 37<p>This chapter groups utility functions useful in a variety of programs. 38The corresponding declarations are in the header file <samp><span class="file">stdlib.h</span></samp>. 39 40<ul class="menu"> 41<li><a accesskey="1" href="_005fExit.html#g_t_005fExit">_Exit</a>: End program execution without cleaning up 42<li><a accesskey="2" href="a64l.html#a64l">a64l</a>: String to long long 43<li><a accesskey="3" href="abort.html#abort">abort</a>: Abnormal termination of a program 44<li><a accesskey="4" href="abs.html#abs">abs</a>: Integer absolute value (magnitude) 45<li><a accesskey="5" href="assert.html#assert">assert</a>: Macro for Debugging Diagnostics 46<li><a accesskey="6" href="atexit.html#atexit">atexit</a>: Request execution of functions at program exit 47<li><a accesskey="7" href="atof.html#atof">atof</a>: String to double or float 48<li><a accesskey="8" href="atoi.html#atoi">atoi</a>: String to integer 49<li><a accesskey="9" href="atoll.html#atoll">atoll</a>: String to long long 50<li><a href="bsearch.html#bsearch">bsearch</a>: Binary search 51<li><a href="calloc.html#calloc">calloc</a>: Allocate space for arrays 52<li><a href="div.html#div">div</a>: Divide two integers 53<li><a href="ecvtbuf.html#ecvtbuf">ecvtbuf</a>: Double or float to string of digits 54<li><a href="ecvt.html#ecvt">ecvt</a>: Double or float to string of digits (malloc result) 55<li><a href="_005f_005fenv_005flock.html#g_t_005f_005fenv_005flock">__env_lock</a>: Lock environment list for getenv and setenv 56<li><a href="gvcvt.html#gvcvt">gvcvt</a>: Format double or float as string 57<li><a href="exit.html#exit">exit</a>: End program execution 58<li><a href="getenv.html#getenv">getenv</a>: Look up environment variable 59<li><a href="labs.html#labs">labs</a>: Long integer absolute value (magnitude) 60<li><a href="ldiv.html#ldiv">ldiv</a>: Divide two long integers 61<li><a href="llabs.html#llabs">llabs</a>: Long long integer absolute value (magnitude) 62<li><a href="lldiv.html#lldiv">lldiv</a>: Divide two long long integers 63<li><a href="malloc.html#malloc">malloc</a>: Allocate and manage memory (malloc, realloc, free) 64<li><a href="mallinfo.html#mallinfo">mallinfo</a>: Get information about allocated memory 65<li><a href="_005f_005fmalloc_005flock.html#g_t_005f_005fmalloc_005flock">__malloc_lock</a>: Lock memory pool for malloc and free 66<li><a href="mbsrtowcs.html#mbsrtowcs">mbsrtowcs</a>: Convert a character string to a wide-character string 67<li><a href="mbstowcs.html#mbstowcs">mbstowcs</a>: Minimal multibyte string to wide string converter 68<li><a href="mblen.html#mblen">mblen</a>: Minimal multibyte length 69<li><a href="mbtowc.html#mbtowc">mbtowc</a>: Minimal multibyte to wide character converter 70<li><a href="on_005fexit.html#on_005fexit">on_exit</a>: Request execution of functions at program exit 71<li><a href="qsort.html#qsort">qsort</a>: Array sort 72<li><a href="rand.html#rand">rand</a>: Pseudo-random numbers 73<li><a href="rand48.html#rand48">rand48</a>: Uniformly distributed pseudo-random numbers 74<li><a href="strtod.html#strtod">strtod</a>: String to double or float 75<li><a href="strtol.html#strtol">strtol</a>: String to long 76<li><a href="strtoll.html#strtoll">strtoll</a>: String to long long 77<li><a href="strtoul.html#strtoul">strtoul</a>: String to unsigned long 78<li><a href="strtoull.html#strtoull">strtoull</a>: String to unsigned long long 79<li><a href="wcsrtombs.html#wcsrtombs">wcsrtombs</a>: Convert a wide-character string to a character string 80<li><a href="wcstod.html#wcstod">wcstod</a>: Wide string to double or float 81<li><a href="wcstol.html#wcstol">wcstol</a>: Wide string to long 82<li><a href="wcstoll.html#wcstoll">wcstoll</a>: Wide string to long long 83<li><a href="wcstoul.html#wcstoul">wcstoul</a>: Wide string to unsigned long 84<li><a href="wcstoull.html#wcstoull">wcstoull</a>: Wide string to unsigned long long 85<li><a href="system.html#system">system</a>: Execute command string 86<li><a href="wcstombs.html#wcstombs">wcstombs</a>: Minimal wide string to multibyte string converter 87<li><a href="wctomb.html#wctomb">wctomb</a>: Minimal wide character to multibyte converter 88</ul> 89 90 </body></html> 91 92