|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-27 17:10 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Description: ------------ These two functions, also in libuuid, would be useful. ---- NAME uuid_parse - convert an input UUID string into binary representation SYNOPSIS #include <uuid/uuid.h> int uuid_parse( char *in, uuid_t uu); DESCRIPTION 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?). ---- NAME uuid_unparse - convert an UUID from binary representation to a string SYNOPSIS #include <uuid/uuid.h> void uuid_unparse(uuid_t uu, char *out); void uuid_unparse_upper(uuid_t uu, char *out); void uuid_unparse_lower(uuid_t uu, char *out); DESCRIPTION The uuid_unparse function converts the supplied UUID uu from the binary representation into a 36-byte string (plus tailing ?\0?) of the form 1b4e28ba-2fa1-11d2-883f-b9a76 and stores this value in the char- acter string pointed to by out. The case of the hex digits returned by uuid_unparse may be upper or lower case, and is dependent on the system-dependent local default. If the case of the hex digits is important then the functions uuid_unparse_upper and uuid_unparse_lower may be used.