102 lines
2.8 KiB
HTML
102 lines
2.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of UUID_PARSE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>UUID_PARSE</H1>
|
|
Section: Libuuid API (3)<BR>Updated: May 2009<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
uuid_parse - convert an input UUID string into binary representation
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<PRE>
|
|
<B>#include <<A HREF="file:///usr/include/uuid.h">uuid.h</A>></B>
|
|
|
|
<B>int uuid_parse( char *</B><I>in</I><B>, uuid_t </B><I>uu</I><B>);</B>
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>uuid_parse</B>
|
|
|
|
function converts the UUID string given by
|
|
<I>in</I>
|
|
|
|
into the binary representation. The input UUID is a string of the form
|
|
1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in
|
|
<B><A HREF="/cgi-bin/man/man2html?3+printf">printf</A></B>(3)
|
|
|
|
format "%08x-%04x-%04x-%04x-%012x", 36 bytes plus the trailing '\0').
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
Upon successfully parsing the input string, 0 is returned, and the UUID is
|
|
stored in the location pointed to by
|
|
<I>uu</I>,
|
|
|
|
otherwise -1 is returned.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
This library parses UUIDs compatible with OSF DCE 1.1, and hash based UUIDs V3
|
|
and V5 compatible with RFC-4122.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Theodore Y. Ts'o
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
<B>libuuid</B>
|
|
|
|
is part of the util-linux package since version 2.15.1 and is available from
|
|
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid">uuid</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_clear">uuid_clear</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_compare">uuid_compare</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_copy">uuid_copy</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_generate">uuid_generate</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_is_null">uuid_is_null</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_time">uuid_time</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uuid_unparse">uuid_unparse</A></B>(3)
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">CONFORMING TO</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">AVAILABILITY</A><DD>
|
|
<DT id="8"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:59 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|