Automatic commit
[universe.git] / misc.cc
1
2 // Written and (C) by Francois Fleuret
3 // Contact <francois.fleuret@idiap.ch> for comments & bug reports
4
5 #include "misc.h"
6
7 int compare_couple(const void *a, const void *b) {
8   if(((Couple *) a)->value < ((Couple *) b)->value) return -1;
9   else if(((Couple *) a)->value > ((Couple *) b)->value) return 1;
10   else return 0;
11 }