return difftime( p2->addition_date, p1->addition_date ) >= 0 ? 1 : -1;
return bm_compare_time( p2->addition_date, p1->addition_date );
static int bm_compare_addition_date( const void *elem1, const void *elem2 ){    BM_Entry *p1 = *(BM_Entry **)elem1;    BM_Entry *p2 = *(BM_Entry **)elem2;        return difftime( p2->addition_date, p1->addition_date ) >= 0 ? 1 : -1;}