# Synopsis

int mda_CompPTRs(MDA_PTR *db_ptr1, MDA_PTR *db_ptr2)

# Purpose

OTM comparison function for MDA_PTRs

# Description

This function should be used as the comparison function when creating OTM trees of database pointers or objects with database pointers as the key (first member of the node structure).

The following code shows how to create a tree of MDA_PTRs: .RS 3 .nf OTM_TREE *tree; . . tree = otm_CreateTree (OTM_NOOPT, sizeof (MDA_PTR), mda_CompPTRs, NULL); .fi .RE

# Input

## db_ptr1

First pointer to be compared

## db_ptr2

Second pointer to be compared

# Return

-1, 0, 1 depending on db_ptr1 being <, == or > db_ptr2 respectively