<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="tai_pack">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>tai_pack</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">djbwares</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>tai_pack</refname>
<refpurpose>convert TAI64 labels to external format</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting>
#include &lt;tai.h&gt;

void \fBtai_pack\fP(\fIbuf\fR,&amp;\fIt\fR);

void \fBtai_unpack\fP(\fIbuf\fR,&amp;\fIt\fR);

char \fIbuf\fR[\fBTAI_PACK\fP];

struct tai \fIt\fR;
</programlisting>
</refsynopsisdiv>
<refsection><title>Description</title>
<command>tai_pack</command>
converts a TAI64 label
from internal format in
<replaceable>t</replaceable>
to TAI64 format in
<replaceable>buf</replaceable>.

<command>tai_unpack</command>
converts a TAI64 label
from TAI64 format in
<replaceable>buf</replaceable>
to internal format in
<replaceable>t</replaceable>.

<command>TAI_PACK</command>
is 8.

See
<command>http://pobox.com/~djb/proto/tai64.txt</command>
for more information about TAI64 format.
</refsection>

<refsection><title>See also</title>
<variablelist>
<varlistentry><term><citerefentry><refentrytitle>tai</refentrytitle><manvolnum>3</manvolnum></citerefentry></term></varlistentry>
</variablelist>
</refsection>

<refsection>
<title>Author</title>
<para>
Original code and documentation by <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>.
Converted to DocBook XML by <personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname>.
</para>
</refsection>
</refentry>
