SYNOPSIS
#include <uuid.h>
int32_t uuid_compare(const uuid_t *uuid1, const uuid_t *uuid2, uint32_t *status);
void uuid_create(uuid_t *uuid, uint32_t *status);
void uuid_create_nil(uuid_t *uuid, uint32_t *status);
int32_t uuid_equal(const uuid_t *uuid1, const uuid_t *uuid2, uint32_t *status);
void uuid_from_string(const char *str, uuid_t *uuid, uint32_t *status);
uint16_t uuid_hash(const uuid_t *uuid, uint32_t *status);
int32_t uuid_is_nil(const uuid_t *uuid, uint32_t *status);
void uuid_to_string(const uuid_t *uuid, char **str, uint32_t *status);
void uuid_enc_le(void *buf, const uuid_t *uuid);
void uuid_dec_le(const void *buf, uuid_t *);
void uuid_enc_be(void *buf, const uuid_t *uuid);
void uuid_dec_be(const void *buf, uuid_t *);
DESCRIPTION
The family of DCE 1.1 compliant UUID functions allow applications to operate on universally unique identifiers, or UUIDs.
The
The
The
RETURN VALUES
The successful or unsuccessful completion of the function is returned in the status argument. Possible values are:
-
uuid_s_ok The function completed successfully.
uuid_s_bad_version The UUID does not have a known version.
uuid_s_invalid_string_uuid The string representation of an UUID is not valid.
uuid_s_no_memory The meaning of the code escaped the writers mind.
CONFORMANCE
The UUID functions conform to the DCE 1.1 RPC specification.
MULTITHREAD SAFETY LEVEL
Safe.
PORTING ISSUES
Linux versions of these functions require the inclusion of <uuid/uuid.h> and -luuid (libuuid) on the link line. The PTC MKS Toolkit versions are based on BSD UNIX source and are directly in libc.
PORTABILITY
FreeBSD 5 and up. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- uuidgen
- Functions:
uuidgen()
PTC MKS Toolkit 10.5 Documentation Build 40.