summaryrefslogtreecommitdiffstats
path: root/man3/offsetof.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/offsetof.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/offsetof.3 b/man3/offsetof.3
index 5dbccc8..3cf0301 100644
--- a/man3/offsetof.3
+++ b/man3/offsetof.3
@@ -25,7 +25,7 @@
.\" References:
.\" /usr/lib/gcc/i486-linux-gnu/4.1.1/include/stddef.h
.\" glibc-doc
-.TH offsetof 3 2023-05-03 "Linux man-pages 6.05.01"
+.TH offsetof 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
offsetof \- offset of a structure member
.SH LIBRARY
@@ -34,7 +34,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stddef.h>
-.PP
+.P
.BI "size_t offsetof(" type ", " member );
.fi
.SH DESCRIPTION
@@ -44,14 +44,14 @@ returns the offset of the field
.I member
from the start of the structure
.IR type .
-.PP
+.P
This macro is useful because the sizes of the fields that compose
a structure can vary across implementations,
and compilers may insert different numbers of padding
bytes between fields.
Consequently, an element's offset is not necessarily
given by the sum of the sizes of the previous elements.
-.PP
+.P
A compiler error will result if
.I member
is not aligned to a byte boundary
@@ -71,7 +71,7 @@ POSIX.1-2001, C89.
On a Linux/i386 system, when compiled using the default
.BR gcc (1)
options, the program below produces the following output:
-.PP
+.P
.in +4n
.EX
.RB "$" " ./a.out"