Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

stdlib(3) [netbsd man page]

STDLIB(3)						   BSD Library Functions Manual 						 STDLIB(3)

NAME
stdlib -- standard library definitions SYNOPSIS
#include <stdlib.h> DESCRIPTION
The <stdlib.h> header defines the following types and macros: 1. NULL - an implementation-defined null pointer constant; 2. size_t and wchar_t - integer types described in stddef(3); 3. div_t, ldiv_t, and lldiv_t - structures that are returned by the div(3), ldiv(3), and lldiv(3) functions, respectively; 4. RAND_MAX - a macro which expands to an integer constant that is the maximum value returned by the rand(3) function; 5. MB_CUR_MAX - an integer expression of type size_t whose value is the maximum number of bytes in a character specified by the current locale; and 6. EXIT_SUCCESS and EXIT_FAILURE - macros which expand to integer constants suitable for use as an argument to the exit(3) function. The <stdlib.h> header also prototypes several important functions such as abort(3), atoi(3), bsearch(3), free(3), malloc(3), and strtol(3). SEE ALSO
stddef(3), types(3), unistd(3) STANDARDS
As described here, the <stdlib.h> header conforms to ISO/IEC 9899:1999 (``ISO C99'') and IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
In the current form the <stdlib.h> header was introduced in NetBSD 0.8. BSD
April 10, 2011 BSD

Check Out this Related Man Page

stdlib.h(3HEAD)                                                       Headers                                                      stdlib.h(3HEAD)

NAME
stdlib.h, stdlib - standard library definitions SYNOPSIS
#include <stdlib.h> DESCRIPTION
The <stdlib.h> header defines the following macros: EXIT_FAILURE Unsuccessful termination for exit(); evaluates to a non-zero value. See exit(3C). EXIT_SUCCESS Successful termination for exit(); evaluates to 0. NULL Null pointer. {RAND_MAX} Maximum value returned by rand(); at least 32767. See rand(3C). {MB_CUR_MAX} Integer expression whose value is the maximum number of bytes in a character specified by the current locale. The following data types are defined through typedef: div_t structure type returned by the div() function ldiv_t structure type returned by the ldiv() function lldiv_t structure type returned by the lldiv() function size_t as described in <stddef.h> wchar_t as described in <stddef.h> See div(3C), which covers div(), ldiv(), and lldiv(), and stddef.h(3HEAD). In addition, the symbolic names and macros listed below are defined as in <sys/wait.h>, for use in decoding the return value from system(). See wait.h(3HEAD) and system(3C). WNOHANG WUNTRACED WEXITSTATUS WIFEXITED WIFSIGNALED WIFSTOPPED WSTOPSIG WTERMSIG ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
a64l(3C), abort(3C), abs(3C), atexit(3C), bsearch(3C), div(3C), drand48(3C), exit(3C), getenv(3C), getsubopt(3C), grantpt(3C), malloc(3C), mblen(3C), mbstowcs(3C), mbtowc(3C), mkstemp(3C), ptsname(3C), putenv(3C), qsort(3C), random(3C), realpath(3C), strtod(3C), strtol(3C), strtoul(3C), unlockpt(3C), wcstombs(3C), wctomb(3C), limits.h(3HEAD), math.h(3HEAD), stddef.h(3HEAD), types.h(3HEAD), wait.h(3HEAD), attributes(5), standards(5) SunOS 5.10 10 Sep 2004 stdlib.h(3HEAD)
Man Page