hmmer-3.3/src/fm_general.c
/* Function:  fm_initAmbiguityList()
 *
 * Synopsis:  initialize the object used to store a list of ambiguity ranges
 *
 * Returns:   eslEMEM in event of allocation failure, otherwise eslOK
 */
fm_initAmbiguityList()
Synopsis:  initialize the object used to store a list of ambiguity ranges

eslEMEM in event of allocation failure, otherwise eslOK
fm_initAmbiguityList () Synopsis : initialize the object used to store a list of ambiguity ranges eslEMEM in event of allocation failure otherwise eslOK
int
fm_initAmbiguityList (FM_AMBIGLIST *list) {
  int status;
  list->size = 1000;
  ESL_ALLOC(list->ranges, list->size * sizeof(FM_INTERVAL));
  if (list->ranges == NULL  )
    esl_fatal("unable to allocate memory to store FM ambiguity data\n");
  list->count = 0;
  return eslOK;
ERROR:
  return eslEMEM;
}
int fm_initAmbiguityList ( FM_AMBIGLIST * list ) { int status ; list -> size = 1000 ; ESL_ALLOC ( list -> ranges , list -> size * sizeof ( FM_INTERVAL ) ) ; if ( list -> ranges == NULL ) esl_fatal ( " \n " ) ; list -> count = 0 ; return eslOK ; ERROR : return eslEMEM ; }
Function:  fm_initAmbiguityList()
 Synopsis:  initialize the object used to store a list of ambiguity ranges
Function : fm_initAmbiguityList () Synopsis : initialize the object used to store a list of ambiguity ranges