summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/offsetof.3 4.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man3/offsetof.3 4.html')
-rw-r--r--static/freebsd/man3/offsetof.3 4.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/static/freebsd/man3/offsetof.3 4.html b/static/freebsd/man3/offsetof.3 4.html
new file mode 100644
index 00000000..99b78ff5
--- /dev/null
+++ b/static/freebsd/man3/offsetof.3 4.html
@@ -0,0 +1,46 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">OFFSETOF(3)</td>
+ <td class="head-vol">Library Functions Manual</td>
+ <td class="head-rtitle">OFFSETOF(3)</td>
+ </tr>
+</table>
+<div class="manual-text">
+<section class="Sh">
+<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<p class="Pp"><code class="Nm">offsetof</code> &#x2014; <span class="Nd">offset
+ of a structure member</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp"><code class="In">#include
+ &lt;<a class="In">stddef.h</a>&gt;</code></p>
+<p class="Pp"><var class="Ft">size_t</var>
+ <br/>
+ <code class="Fn">offsetof</code>(<var class="Fa" style="white-space: nowrap;">type</var>,
+ <var class="Fa" style="white-space: nowrap;">member</var>);</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The
+ <a class="permalink" href="#offsetof"><code class="Fn" id="offsetof">offsetof</code></a>()
+ macro expands to an integer constant expression of type
+ <var class="Ft">size_t</var> and yields the offset, in bytes, of the field
+ <var class="Ar">member</var> from the start of the structure
+ <var class="Ar">type</var>.</p>
+<p class="Pp">A compiler error will result if <var class="Ar">member</var> is
+ not aligned to a byte boundary (i.e. it is a bit-field).</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="STANDARDS"><a class="permalink" href="#STANDARDS">STANDARDS</a></h1>
+<p class="Pp">The <code class="Fn">offsetof</code>() macro conforms to
+ <span class="St">ANSI X3.159-1989
+ (&#x201C;ANSI&#x00A0;C89&#x201D;)</span>.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">February 18, 2010</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>