3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.15
6 .\" Manual: Programmer's Manual
7 .\" Source: util-linux 2.37.4
10 .TH "UUID_PARSE" "3" "2022-01-06" "util\-linux 2.37.4" "Programmer\(aqs Manual"
28 . LINKSTYLE blue R < >
31 uuid_parse \- convert an input UUID string into binary representation
34 \fB#include <uuid.h>\fP
36 \fBint uuid_parse(char *\fIin\fP, uuid_t \fIuu\fP);\fP
38 \fBint uuid_parse_range(char *\fIin_start\fP, char *\fIin_end\fP, uuid_t \fIuu\fP);\fP
41 The \fBuuid_parse\fP() function converts the UUID string given by \fIin\fP into the binary representation. The input UUID is a string of the form 1b4e28ba\-2fa1\-11d2\-883f\-b9a761bde3fb (in \fBprintf\fP(3) format "%08x\-%04x\-%04x\-%04x\-%012x", 36 bytes plus the trailing \(aq\(rs0\(aq).
43 The \fBuuid_parse_range\fP() function works like \fBuuid_parse\fP() but parses only range in string specified by \fIin_start\fP and \fIin_end\fP pointers.
46 Upon successfully parsing the input string, 0 is returned, and the UUID is stored in the location pointed to by \fIuu\fP, otherwise \-1 is returned.
49 This library parses UUIDs compatible with OSF DCE 1.1, and hash based UUIDs V3 and V5 compatible with \c
50 .URL "https://tools.ietf.org/html/rfc4122" "RFC\-4122" "."
58 \fBuuid_compare\fP(3),
60 \fBuuid_generate\fP(3),
61 \fBuuid_is_null\fP(3),
66 For bug reports, use the issue tracker at \c
67 .URL "https://github.com/karelzak/util\-linux/issues" "" "."
70 The \fBlibuuid\fP library is part of the util\-linux package since version 2.15.1. It can be downloaded from \c
71 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."