// Comparator.hh -- contains the type definition for a comparator. #ifndef COMPARATOR_HH #define COMPARATOR_HH /** * The type definition for a comparator function pointer. * Comparator functions should compare the semantic values of * obj1 and obj2 returning a value x such that: * x > 0 if obj1 > obj2 * x = 0 if obj1 == obj2 * x < 0 if obj1 < obj2 */ typedef int (*Comparator)(const void *obj1, const void *obj2); #endif /* COMPARATOR_HH */