1stdlib.h(3HEAD) Headers stdlib.h(3HEAD)
2
3
4
6 stdlib.h, stdlib - standard library definitions
7
9 #include <stdlib.h>
10
11
13 The <stdlib.h> header defines the following macros:
14
15 EXIT_FAILURE Unsuccessful termination for exit(); evaluates to a
16 non-zero value. See exit(3C).
17
18
19 EXIT_SUCCESS Successful termination for exit(); evaluates to 0.
20
21
22 NULL Null pointer.
23
24
25 {RAND_MAX} Maximum value returned by rand(); at least 32767. See
26 rand(3C).
27
28
29 {MB_CUR_MAX} Integer expression whose value is the maximum number of
30 bytes in a character specified by the current locale.
31
32
33
34 The following data types are defined through typedef:
35
36 div_t structure type returned by the div() function
37
38
39 ldiv_t structure type returned by the ldiv() function
40
41
42 lldiv_t structure type returned by the lldiv() function
43
44
45 size_t as described in <stddef.h>
46
47
48 wchar_t as described in <stddef.h>
49
50
51
52 See div(3C), which covers div(), ldiv(), and lldiv(), and std‐
53 def.h(3HEAD).
54
55
56 In addition, the symbolic names and macros listed below are defined as
57 in <sys/wait.h>, for use in decoding the return value from system().
58 See wait.h(3HEAD) and system(3C).
59
60 WNOHANG
61 WUNTRACED
62 WEXITSTATUS
63 WIFEXITED
64 WIFSIGNALED
65 WIFSTOPPED
66 WSTOPSIG
67 WTERMSIG
68
69
71 See attributes(5) for descriptions of the following attributes:
72
73
74
75
76 ┌─────────────────────────────┬─────────────────────────────┐
77 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Interface Stability │Standard │
80 └─────────────────────────────┴─────────────────────────────┘
81
83 a64l(3C), abort(3C), abs(3C), atexit(3C), bsearch(3C), div(3C),
84 drand48(3C), exit(3C), getenv(3C), getsubopt(3C), grantpt(3C), mal‐
85 loc(3C), mblen(3C), mbstowcs(3C), mbtowc(3C), mkstemp(3C), ptsname(3C),
86 putenv(3C), qsort(3C), random(3C), realpath(3C), strtod(3C), str‐
87 tol(3C), strtoul(3C), unlockpt(3C), wcstombs(3C), wctomb(3C), lim‐
88 its.h(3HEAD), math.h(3HEAD), stddef.h(3HEAD), types.h(3HEAD),
89 wait.h(3HEAD), attributes(5), standards(5)
90
91
92
93SunOS 5.11 10 Sep 2004 stdlib.h(3HEAD)