deps/kb_meme/meme-5.0.1/src/prior-reader-from-psp.c
/******************************************************************************
 * This function closes a MEME PSP prior block reader UDT.
 *****************************************************************************/
This function closes a MEME PSP prior block reader UDT.
This function closes a MEME PSP prior block reader UDT .
bool close_prior_reader_from_psp(DATA_BLOCK_READER_T *reader) {
  bool result = false;
  PSP_DATA_BLOCK_READER_T *psp_reader 
    = (PSP_DATA_BLOCK_READER_T *) get_data_block_reader_data(reader);
  psp_reader->current_position = 0;
  if (psp_reader->psp_file != NULL) {
    if (fclose(psp_reader->psp_file) == EOF) {
      die(
        "Error closing file: %s.\nError message: %s\n", 
        psp_reader->filename, 
        strerror(errno)
      );
    }
    else {
      result = true;
    }
  }
  return result;
}
bool close_prior_reader_from_psp ( DATA_BLOCK_READER_T * reader ) { bool result = false ; PSP_DATA_BLOCK_READER_T * psp_reader = ( PSP_DATA_BLOCK_READER_T * ) get_data_block_reader_data ( reader ) ; psp_reader -> current_position = 0 ; if ( psp_reader -> psp_file != NULL ) { if ( fclose ( psp_reader -> psp_file ) == EOF ) { die ( " \n \n " , psp_reader -> filename , strerror ( errno ) ) ; } else { result = true ; } } return result ; }
This function closes a MEME PSP prior block reader UDT.
This function closes a MEME PSP prior block reader UDT .