EDCS Reference Manual
Functions
EDCS CompareCountValues
extern int
EDCS_CompareCountValues
(
constEDCS_Count_Value *a_ptr, (notes)
constEDCS_Count_Value *b_ptr (notes)
);

Definition

Compares 2 EDCS_Count_Value types. This function's signature is compatible with qsort.

The comparison compares lower bounds, then uses upper bounds to break any ties ( see EDCS_CompareCountIntervals ). If the lower bound and upper bound values match, closed bounds are considered less than open bounds.


Returns

-1 if a_ptr is NULL and b_ptr is non-NULL, or *a_ptr < *b_ptr
0 if both arguments are NULL, or *a_ptr == *b_ptr
1 if b_ptr is NULL and a_ptr is non-NULL, or *a_ptr > *b_ptr


Parameters Notes


a_ptr

 handle to 1st EDCS_Count_Value to be compared

b_ptr

 handle to 2nd EDCS_Count_Value to be compared


Prev: EDCS_CompareCountIntervals. Next: EDCS_CompareIntegerIntervals. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS