record/kogmo_rtdb_record.c
// comparison function for qsort to sort oids ascending           
comparison function for qsort to sort oids ascending
comparison function for qsort to sort oids ascending
static int compare_oid(const void *a, const void *b) {
     kogmo_rtdb_objid_t * oid_a = (kogmo_rtdb_objid_t *) a;
     kogmo_rtdb_objid_t * oid_b = (kogmo_rtdb_objid_t *) b;
     if ( *oid_a < *oid_b ) return -1;
     if ( *oid_a > *oid_b ) return 1;
     return 0;
}
static int compare_oid ( const void * a , const void * b ) { kogmo_rtdb_objid_t * oid_a = ( kogmo_rtdb_objid_t * ) a ; kogmo_rtdb_objid_t * oid_b = ( kogmo_rtdb_objid_t * ) b ; if ( * oid_a < * oid_b ) return -1 ; if ( * oid_a > * oid_b ) return 1 ; return 0 ; }
comparison function for qsort to sort oids ascending
comparison function for qsort to sort oids ascending