pips_guid_cmp()

Updated: April 19, 2023

Compare two GUIDs to determine their partial order

Synopsis:

#include <pips/pips.h>
int pips_guid_cmp(const pips_guid_t *const first,
                  const pips_guid_t *const second)

Arguments:

first
A pointer to the first GUID to be compared. This argument must be non-null or the assertion might fail.
second
A pointer to the second GUID to be compared. This argument must be non-null or the assertion might fail.

Library:

pips-client

Returns:

-1
The first GUID precedes the second GUID
0
The order of the GUIDs is undetermined, so they're equal
1
The first GUID follows the second GUID