hmmer-3.3/src/hmmdmstr.c
/* discard_function()
 * function handed to esl_stack_DiscardSelected() to remove
 * all commands in the stack that are associated with a
 * particular client socket, because we're closing that
 * client down. Prototype to this is dictate by the generalized
 * interface to esl_stack_DiscardSelected().
 */
discard_function()
function handed to esl_stack_DiscardSelected() to remove
all commands in the stack that are associated with a
particular client socket, because we're closing that
client down. Prototype to this is dictate by the generalized
interface to esl_stack_DiscardSelected().
discard_function () function handed to esl_stack_DiscardSelected () to remove all commands in the stack that are associated with a particular client socket because we ' re closing that client down . Prototype to this is dictate by the generalized interface to esl_stack_DiscardSelected () .
static int
discard_function(void *elemp, void *args)
{
  QUEUE_DATA  *elem = (QUEUE_DATA *) elemp;
  int          fd   = * (int *) args;
  if (elem->sock == fd) 
    {
      free_QueueData(elem);
      return TRUE;
    }
  return FALSE;
}
static int discard_function ( void * elemp , void * args ) { QUEUE_DATA * elem = ( QUEUE_DATA * ) elemp ; int fd = * ( int * ) args ; if ( elem -> sock == fd ) { free_QueueData ( elem ) ; return TRUE ; } return FALSE ; }
discard_function()
 function handed to esl_stack_DiscardSelected() to remove
 all commands in the stack that are associated with a
 particular client socket, because we're closing that
 client down.
discard_function () function handed to esl_stack_DiscardSelected () to remove all commands in the stack that are associated with a particular client socket because we ' re closing that client down .