uuid_compare(3)

uuid_compare3

Compare whether two uuids are the same

Usage

#include <uuid.h>

int uuid_compare(const uuid_t uu1, const uuid_t uu2)

Overview

The uuid_compare() function compares the two supplied uuid variables uu1 and uu2 to each other.

Return value

Returns an integer less than, equal to, or greater than zero if uu1 is found, respectively, to be lexicographically less than, equal, or greater than uu2.

Releases

14 releases since Debian 2.2 (Potato); the text changed 12 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0
  6. 6.0
  7. 7
  8. 8–9
  9. 10
  10. 11
  11. 12
  12. 13
  13. Arch

Authors

Theodore Y. Ts’o

Availability

The libuuid library is part of the util-linux package since version 2.15.1. It can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

From util-linux-libs 2.42.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.