1stddef.h(3HEAD) Headers stddef.h(3HEAD)
2
3
4
6 stddef.h, stddef - standard type definitions
7
9 #include <stddef.h>
10
11
13 The <stddef.h> header defines the following macros:
14
15 NULL
16
17 Null pointer constant.
18
19
20 offsetof(type, member-designator)
21
22 Integer constant expression of type size_t, the value of which is
23 the offset in bytes to the structure member (member-designator),
24 from the beginning of its structure (type).
25
26
27
28 The <stddef.h> header defines the following types:
29
30 ptrdiff_t Signed integer type of the result of subtracting two
31 pointers.
32
33
34 wchar_t Integer type whose range of values can represent distinct
35 wide-character codes for all members of the largest char‐
36 acter set specified among the locales supported by the
37 compilation environment: the null character has the code
38 value 0 and each member of the portable character set has
39 a code value equal to its value when used as the lone
40 character in an integer character constant.
41
42
43 size_t Unsigned integer type of the result of the sizeof opera‐
44 tor.
45
46
47
48 The implementation supports one or more programming environments in
49 which the widths of ptrdiff_t, size_t, and wchar_t are no greater than
50 the width of type long. The names of these programming environments can
51 be obtained using the confstr(3C) function or the getconf(1) utility.
52
54 See attributes(5) for descriptions of the following attributes:
55
56
57
58
59 ┌─────────────────────────────┬─────────────────────────────┐
60 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
61 ├─────────────────────────────┼─────────────────────────────┤
62 │Interface Stability │Standard │
63 └─────────────────────────────┴─────────────────────────────┘
64
66 getconf(1), confstr(3C), types.h(3HEAD), wchar.h(3HEAD), attributes(5),
67 standards(5)
68
69
70
71SunOS 5.11 10 Sep 2004 stddef.h(3HEAD)