udbLibraryCompare

Description

Compare two library structures. Return a value suitable for typical comparison operations.

Applies only to Understand for Ada databases and only the “standard” Ada library is supported.

Syntax

#include “udb/udb.h” 
int  udbLibraryCompare(UdbLibrary lib1, UdbLibrary lib2) 

Arguments

Argument
Description
UdbLibrary lib1
The first library to compare
UdbLibrary lib2
The second library to compare

Return Values

Return Value
Description
int
Returns:
0 if lib1 is the same as lib2
<0 if lib1 < lib2
>0 if lib1 > lib2

Example Usage

if (! udbLibraryCompare (lib1, lib2) ) {...} 

See Also

udbEntityLibrary

udbLibraryCheckEntity

udbLibraryFilterEntity

udbLibraryList

udbLibraryListFree

udbLibraryName


Scientific Toolworks, Inc.
http://www.scitools.com