| 1 |
//po4a: entry man manual |
| 2 |
//// |
| 3 |
Copyright 1999 Andreas Dilger ([email protected]) |
| 4 |
|
| 5 |
Redistribution and use in source and binary forms, with or without |
| 6 |
modification, are permitted provided that the following conditions |
| 7 |
are met: |
| 8 |
1. Redistributions of source code must retain the above copyright |
| 9 |
notice, and the entire permission notice in its entirety, |
| 10 |
including the disclaimer of warranties. |
| 11 |
2. Redistributions in binary form must reproduce the above copyright |
| 12 |
notice, this list of conditions and the following disclaimer in the |
| 13 |
documentation and/or other materials provided with the distribution. |
| 14 |
3. The name of the author may not be used to endorse or promote |
| 15 |
products derived from this software without specific prior |
| 16 |
written permission. |
| 17 |
|
| 18 |
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 19 |
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 20 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF |
| 21 |
WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE |
| 22 |
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
| 24 |
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 25 |
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 26 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
| 28 |
USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH |
| 29 |
DAMAGE. |
| 30 |
|
| 31 |
Created Wed Mar 10 17:42:12 1999, Andreas Dilger |
| 32 |
//// |
| 33 |
ifdef::neverdefined[---] |
| 34 |
|
| 35 |
= uuid_parse(3) |
| 36 |
:doctype: manpage |
| 37 |
:man manual: Programmer's Manual |
| 38 |
:man source: util-linux {release-version} |
| 39 |
:page-layout: base |
| 40 |
:lib: libuuid |
| 41 |
:firstversion: 2.15.1 |
| 42 |
|
| 43 |
== NAME |
| 44 |
|
| 45 |
uuid_parse - convert an input UUID string into binary representation |
| 46 |
|
| 47 |
== SYNOPSIS |
| 48 |
|
| 49 |
*#include <uuid.h>* |
| 50 |
|
| 51 |
*int uuid_parse(const char *__in__, uuid_t __uu__);* + |
| 52 |
*int uuid_parse_range(const char *__in_start__, const char *__in_end__, uuid_t __uu__);* |
| 53 |
|
| 54 |
== DESCRIPTION |
| 55 |
|
| 56 |
The *uuid_parse*() function converts the UUID string given by _in_ into the binary representation. The input UUID is a string of the form 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in *printf*(3) format "%08x-%04x-%04x-%04x-%012x", 36 bytes plus the trailing '\0'). |
| 57 |
|
| 58 |
The *uuid_parse_range*(3) function works like *uuid_parse*() but parses only range in string specified by _in_start_ and _in_end_ pointers. |
| 59 |
|
| 60 |
== RETURN VALUE |
| 61 |
|
| 62 |
Upon successfully parsing the input string, 0 is returned, and the UUID is stored in the location pointed to by _uu_, otherwise -1 is returned. |
| 63 |
|
| 64 |
== CONFORMING TO |
| 65 |
|
| 66 |
This library parses UUIDs compatible with OSF DCE 1.1, and hash based UUIDs V3 and V5 compatible with link:https://tools.ietf.org/html/rfc4122[RFC-4122]. |
| 67 |
|
| 68 |
== AUTHORS |
| 69 |
|
| 70 |
Theodore Y. Ts'o |
| 71 |
|
| 72 |
== SEE ALSO |
| 73 |
|
| 74 |
*uuid*(3), |
| 75 |
*uuid_clear*(3), |
| 76 |
*uuid_compare*(3), |
| 77 |
*uuid_copy*(3), |
| 78 |
*uuid_generate*(3), |
| 79 |
*uuid_is_null*(3), |
| 80 |
*uuid_time*(3), |
| 81 |
*uuid_unparse*(3) |
| 82 |
|
| 83 |
include::man-common/bugreports.adoc[] |
| 84 |
|
| 85 |
include::man-common/footer-lib.adoc[] |
| 86 |
|
| 87 |
ifdef::translation[] |
| 88 |
include::man-common/translation.adoc[] |
| 89 |
endif::[] |