9103 opengroup acknowledgement should be properly formatted in man pages
[unleashed.git] / usr / src / man / man3c / offsetof.3c
blob2d1c35992ce264fc0b0f395da95ef07def78c538
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH OFFSETOF 3C "Dec 29, 1996"
7 .SH NAME
8 offsetof \- offset of structure member
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <stddef.h>
14 \fBsize_t\fR \fBoffsetof\fR(\fB\fR\fItype\fR, \fB\fR\fImember-designator\fR);
15 .fi
17 .SH DESCRIPTION
18 .sp
19 .LP
20 The \fBoffsetof()\fR macro defined in <\fBstddef.h\fR> expands to an integral
21 constant expression that has type \fBsize_t\fR. The value of this expression is
22 the offset in bytes to the structure member (designated by
23 \fImember-designator\fR) from the beginning of its structure (designated by
24 \fItype\fR).
25 .SH ATTRIBUTES
26 .sp
27 .LP
28 See \fBattributes\fR(5) for descriptions of the following attributes:
29 .sp
31 .sp
32 .TS
33 box;
34 c | c
35 l | l .
36 ATTRIBUTE TYPE  ATTRIBUTE VALUE
38 MT-Level        MT-Safe
39 .TE
41 .SH SEE ALSO
42 .sp
43 .LP
44 \fBattributes\fR(5)