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(7) 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(7), standards(7)

September 10, 2004 STDLIB.H(3HEAD)

tribblix@gmail.com :: GitHub :: Privacy