1@node Stdlib 2@chapter Standard Utility Functions (@file{stdlib.h}) 3 4This chapter groups utility functions useful in a variety of programs. 5The corresponding declarations are in the header file @file{stdlib.h}. 6 7@menu 8* abort:: Abnormal termination of a program 9* abs:: Integer absolute value (magnitude) 10* assert:: Macro for Debugging Diagnostics 11* atexit:: Request execution of functions at program exit 12* atof:: String to double or float 13* atoi:: String to integer 14* atoll:: String to long long 15* calloc:: Allocate space for arrays 16* div:: Divide two integers 17* ecvtbuf:: Double or float to string of digits 18* ecvt:: Double or float to string of digits (malloc result) 19* __env_lock:: Lock environment list for getenv and setenv 20* gvcvt:: Format double or float as string 21* exit:: End program execution 22* getenv:: Look up environment variable 23* labs:: Long integer absolute value (magnitude) 24* ldiv:: Divide two long integers 25* llabs:: Long long integer absolute value (magnitude) 26* lldiv:: Divide two long long integers 27* malloc:: Allocate and manage memory (malloc, realloc, free) 28* mallinfo:: Get information about allocated memory 29* __malloc_lock:: Lock memory pool for malloc and free 30* mbstowcs:: Minimal multibyte string to wide string converter 31* mblen:: Minimal multibyte length 32* mbtowc:: Minimal multibyte to wide character converter 33* rand:: Pseudo-random numbers 34* rand48:: Uniformly distributed pseudo-random numbers 35* strtod:: String to double or float 36* strtol:: String to long 37* strtoul:: String to unsigned long 38* system:: Execute command string 39* wcstombs:: Minimal wide string to multibyte string converter 40* wctomb:: Minimal wide character to multibyte converter 41@end menu 42 43@page 44@include stdlib/abort.def 45 46@page 47@include stdlib/abs.def 48 49@page 50@include stdlib/assert.def 51 52@page 53@include stdlib/atexit.def 54 55@page 56@include stdlib/atof.def 57 58@page 59@include stdlib/atoi.def 60 61@page 62@include stdlib/atoll.def 63 64@page 65@include stdlib/calloc.def 66 67@page 68@include stdlib/div.def 69 70@page 71@include stdlib/efgcvt.def 72 73@page 74@include stdlib/ecvtbuf.def 75 76@page 77@include stdlib/envlock.def 78 79@page 80@include stdlib/exit.def 81 82@page 83@include stdlib/getenv.def 84 85@page 86@include stdlib/labs.def 87 88@page 89@include stdlib/ldiv.def 90 91@page 92@include stdlib/llabs.def 93 94@page 95@include stdlib/lldiv.def 96 97@page 98@include stdlib/malloc.def 99 100@page 101@include stdlib/mstats.def 102 103@page 104@include stdlib/mlock.def 105 106@page 107@include stdlib/mblen.def 108 109@page 110@include stdlib/mbstowcs.def 111 112@page 113@include stdlib/mbtowc.def 114 115@page 116@include stdlib/rand.def 117 118@page 119@include stdlib/rand48.def 120 121@page 122@include stdlib/strtod.def 123 124@page 125@include stdlib/strtol.def 126 127@page 128@include stdlib/strtoul.def 129 130@page 131@include stdlib/system.def 132 133@page 134@include stdlib/wcstombs.def 135 136@page 137@include stdlib/wctomb.def 138 139