The SEDRIS Data Representation Model
APPENDIX D - Functions SE CompareSingleValues |
---|
extern int | ||||
SE_CompareSingleValues | ||||
( | ||||
const | SE_Single_Value | * | a_ptr, | 1 |
const | SE_Single_Value | * | b_ptr | 2 |
); |
When comparing:
integers, floats: normal mathematical rules apply
EEs: underlying compare functions for those codes apply
boolean to boolean: FALSE is less than TRUE
string to string: strcmp() rules apply
boolean to anything but a boolean: FALSE is 0, TRUE is 1, and a numeric comparison is used
string to anything but a string: the string is 0, and a numeric comparison is used
-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 |
1 pointer to 1st SE_Single_Value to be compared
2 pointer to 2nd SE_Single_Value to be compared
Prev: SE_ComparePropertyCodes.
Next: SE_CompareStrings.
Up:Index.
|