The SEDRIS Data Representation Model
APPENDIX D - Functions
SE CompareIntegerIntervalValues
extern int
SE_CompareIntegerIntervalValues
(
constSE_Integer_Interval_Value *a_ptr, (notes)
constSE_Integer_Interval_Value *b_ptr (notes)
);

Definition

Compares 2 SE_Integer_Interval_Value types.

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


Returns

-1 if *a_ptr < *b_ptr
0 if *a_ptr == *b_ptr
1 if *a_ptr > *b_ptr


Parameters Notes


a_ptr

 pointer to 1st SE_Integer_Interval_Value to be compared

b_ptr

 pointer to 2nd SE_Integer_Interval_Value to be compared


Prev: SE_CompareFloatIntervalValues. Next: SE_CompareIntervalValues. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS