deps/kb_meme/meme-5.0.1/src/alph-in.c
/*
 * alph_reader_ambig
 * Adds a ambiguous symbol bypassing the text processing.
 */
alph_reader_ambig
Adds a ambiguous symbol bypassing the text processing.
alph_reader_ambig Adds a ambiguous symbol bypassing the text processing .
void alph_reader_ambig(ALPH_READER_T *reader, char symbol, const char* aliases, const char* name, int colour, const char *comprise) {
  if (reader->state != STATE_CORE && reader->state != STATE_AMBIG) die("Alphabet header must be specified first!");
  if (reader->state == STATE_CORE) check_complements(reader);
  process_ambig(reader, -1, symbol, (name == NULL ? NULL : strdup(name)), colour, strdup(comprise));
  reader->state = STATE_AMBIG;
  if (aliases != NULL) {
    int i;
    for (i = 0; aliases[i] != '\0'; i++) process_ambig(reader, -1, aliases[i], NULL, -1, strdup(comprise));
  }
}
void alph_reader_ambig ( ALPH_READER_T * reader , char symbol , const char * aliases , const char * name , int colour , const char * comprise ) { if ( reader -> state != STATE_CORE && reader -> state != STATE_AMBIG ) die ( " " ) ; if ( reader -> state == STATE_CORE ) check_complements ( reader ) ; process_ambig ( reader , -1 , symbol , ( name == NULL ? NULL : strdup ( name ) ) , colour , strdup ( comprise ) ) ; reader -> state = STATE_AMBIG ; if ( aliases != NULL ) { int i ; for ( i = 0 ; aliases [ i ] != ' \0 ' ; i ++ ) process_ambig ( reader , -1 , aliases [ i ] , NULL , -1 , strdup ( comprise ) ) ; } }
alph_reader_ambig
 Adds a ambiguous symbol bypassing the text processing.
alph_reader_ambig Adds a ambiguous symbol bypassing the text processing .