deps/kb_meme/meme-5.0.1/src/object-list.c
/*************************************************************************
 * Sort the objects in the list.
 *************************************************************************/
Sort the objects in the list.
Sort the objects in the list .
static int object_compare
  (const void* elem1,
   const void* elem2)
{
  const double key1 = ((OBJECT_T *)elem1)->score;
  const double key2 = ((OBJECT_T *)elem2)->score;
  if (key1 <= key2) {
    return(-1);
  } else {
    return(1);
  }
  return(0);
}
static int object_compare ( const void * elem1 , const void * elem2 ) { const double key1 = ( ( OBJECT_T * ) elem1 ) -> score ; const double key2 = ( ( OBJECT_T * ) elem2 ) -> score ; if ( key1 <= key2 ) { return ( -1 ) ; } else { return ( 1 ) ; } return ( 0 ) ; }
Sort the objects in the list.
Sort the objects in the list .