Previous section.

CDE 1.1: Remote Procedure Call
Copyright © 1997 The Open Group

NAME

uuid_compare- compares two UUIDs and determines their order

Used by client, server or management applications

SYNOPSIS

#include <dce/uuid.h>

signed32 uuid_compare( uuid_t *uuid1, uuid_t *uuid2, unsigned32 *status);

PARAMETERS

Input

uuid1
A pointer to a UUID. This UUID is compared with the UUID specified in the uuid2 argument.

uuid2
A pointer to a UUID. This UUID is compared with the UUID specified in the uuid1 argument.

Output

status
Returns the status code from this routine. The status code indicates whether the routine completed successfully, or if not, why not.

Possible status codes and their meanings include:

uuid_s_ok
Success.

DESCRIPTION

The uuid_compare() routine compares two UUIDs and determines their order.

RETURN VALUE

If successful, returns one of the following constants:

\(mi1
The uuid1 argument precedes the uuid2 argument.

0
The uuid1 argument is equal to the uuid2 argument.

1
The uuid1 argument follows the uuid2 argument.

SEE ALSO


uuid_equal()
uuid_is_nil().

Please note that the html version of this specification may contain formatting aberrations. The definitive version is available as an electronic publication on CD-ROM from The Open Group.

Contents Next section Index