dcmp.c 176 B

1234567891011121314
  1. int Cdhc_dcmp(const void *i, const void *j)
  2. {
  3. double x = *(double *)i;
  4. double y = *(double *)j;
  5. if (x < y)
  6. return -1;
  7. if (x > y)
  8. return 1;
  9. return 0;
  10. }