1# 2#Copyright (c) 1990 Regents of the University of California. 3#All rights reserved. 4# 5@node Stdlib 6@chapter Standard Utility Functions (@file{stdlib.h}) 7 8This chapter groups utility functions useful in a variety of programs. 9The corresponding declarations are in the header file @file{stdlib.h}. 10 11@menu 12* _Exit:: End program execution without cleaning up 13* a64l:: String to long long 14* abort:: Abnormal termination of a program 15* abs:: Integer absolute value (magnitude) 16* assert:: Macro for Debugging Diagnostics 17* atexit:: Request execution of functions at program exit 18* atof:: String to double or float 19* atoi:: String to integer 20* atoll:: String to long long 21* bsearch:: Binary search 22* calloc:: Allocate space for arrays 23* div:: Divide two integers 24* ecvtbuf:: Double or float to string of digits 25* ecvt:: Double or float to string of digits (malloc result) 26* __env_lock:: Lock environment list for getenv and setenv 27* gcvt:: Format double or float as string 28* exit:: End program execution 29* getenv:: Look up environment variable 30* itoa:: Integer to string 31* labs:: Long integer absolute value (magnitude) 32* ldiv:: Divide two long integers 33* llabs:: Long long integer absolute value (magnitude) 34* lldiv:: Divide two long long integers 35* malloc:: Allocate and manage memory (malloc, realloc, free) 36* mallinfo:: Get information about allocated memory 37* __malloc_lock:: Lock memory pool for malloc and free 38* mbsrtowcs:: Convert a character string to a wide-character string 39* mbstowcs:: Minimal multibyte string to wide string converter 40* mblen:: Minimal multibyte length 41* mbtowc:: Minimal multibyte to wide character converter 42* on_exit:: Request execution of functions at program exit 43* qsort:: Array sort 44* rand:: Pseudo-random numbers 45* random:: Pseudo-random numbers 46* rand48:: Uniformly distributed pseudo-random numbers 47* rpmatch:: Determine whether response is affirmative or negative 48* strtod:: String to double or float 49* strtol:: String to long 50* strtoll:: String to long long 51* strtoul:: String to unsigned long 52* strtoull:: String to unsigned long long 53* wcsrtombs:: Convert a wide-character string to a character string 54* wcstod:: Wide string to double or float 55* wcstol:: Wide string to long 56* wcstoll:: Wide string to long long 57* wcstoul:: Wide string to unsigned long 58* wcstoull:: Wide string to unsigned long long 59* system:: Execute command string 60* utoa:: Unsigned integer to string 61* wcstombs:: Minimal wide string to multibyte string converter 62* wctomb:: Minimal wide character to multibyte converter 63@end menu 64 65@page 66@include stdlib/_Exit.def 67 68@page 69@include stdlib/a64l.def 70 71@page 72@include stdlib/abort.def 73 74@page 75@include stdlib/abs.def 76 77@page 78@include stdlib/assert.def 79 80@page 81@include stdlib/atexit.def 82 83@page 84@include stdlib/atof.def 85 86@page 87@include stdlib/atoi.def 88 89@page 90@include stdlib/atoll.def 91 92@page 93@include search/bsearch.def 94 95@page 96@include stdlib/calloc.def 97 98@page 99@include stdlib/div.def 100 101@page 102@include stdlib/efgcvt.def 103 104@page 105@include stdlib/ecvtbuf.def 106 107@page 108@include stdlib/envlock.def 109 110@page 111@include stdlib/exit.def 112 113@page 114@include stdlib/getenv.def 115 116@page 117@include stdlib/itoa.def 118 119@page 120@include stdlib/labs.def 121 122@page 123@include stdlib/ldiv.def 124 125@page 126@include stdlib/llabs.def 127 128@page 129@include stdlib/lldiv.def 130 131@page 132@include stdlib/malloc.def 133 134@page 135@include stdlib/mstats.def 136 137@page 138@include stdlib/mlock.def 139 140@page 141@include stdlib/mblen.def 142 143@page 144@include stdlib/mbsnrtowcs.def 145 146@page 147@include stdlib/mbstowcs.def 148 149@page 150@include stdlib/mbtowc.def 151 152@page 153@include stdlib/on_exit.def 154 155@page 156@include search/qsort.def 157 158@page 159@include stdlib/rand.def 160 161@page 162@include stdlib/random.def 163 164@page 165@include stdlib/rand48.def 166 167@page 168@include stdlib/rpmatch.def 169 170@page 171@include stdlib/strtod.def 172 173@page 174@include stdlib/strtol.def 175 176@page 177@include stdlib/strtoll.def 178 179@page 180@include stdlib/strtoul.def 181 182@page 183@include stdlib/strtoull.def 184 185@page 186@include stdlib/wcsnrtombs.def 187 188@page 189@include stdlib/wcstod.def 190 191@page 192@include stdlib/wcstol.def 193 194@page 195@include stdlib/wcstoll.def 196 197@page 198@include stdlib/wcstoul.def 199 200@page 201@include stdlib/wcstoull.def 202 203@page 204@include stdlib/system.def 205 206@page 207@include stdlib/utoa.def 208 209@page 210@include stdlib/wcstombs.def 211 212@page 213@include stdlib/wctomb.def 214 215