19 unsigned char *seq_buf;
23 for (i = 0; i < seq_len; i++, seq_buf++)
32 unsigned char *seq_buf;
35 str = (
char *)
CALLOC((
unsigned int) seq_len + 1,
sizeof(
char));
39 for (i = 0; i < seq_len; i++) {
40 *(str_buf++) = *(seq_buf++);
58 for (counter = 0, str = String; *str !=
'\0'; str++)
63 seq = (
unsigned char*)
CALLOC((
unsigned int) seq_len,
sizeof(
unsigned char));
64 dots = (
unsigned char **)
CALLOC((
unsigned int) (seq_len/8)+1,
sizeof(
unsigned char));
70 (*dots)[0] |= (
unsigned char) (1<<7);
71 for (counter = 0, str = String, s = seq; *str !=
'\0'; str++) {
79 (*dots)[(counter/8)] |= (
unsigned char) (1<<(7-(counter%8)));
92 for (counter = pos = 0, str = SEQ->
sequence();
93 pos < SEQ->
length(); pos++, str++)
98 seq = (
unsigned char*)
CALLOC((
unsigned int) seq_len,
sizeof(
unsigned char));
99 dots = (
unsigned char **)
CALLOC((
unsigned int) (seq_len/8)+1,
sizeof(
unsigned char));
105 (*dots)[0] |= (
unsigned char) (1<<7);
106 for (counter = pos = 0, str = SEQ->
sequence(), s = seq;
107 pos < SEQ->
length(); str++, pos++) {
115 (*dots)[(counter/8)] |= (
unsigned char) (1<<(7-(counter%8)));
124 unsigned char *seq_buf;
127 str = (
char *)
CALLOC((
unsigned int) seq_len + 1,
sizeof(
char));
130 for (i = seq_len, str_buf = str, seq_buf = seq; i-- > 0;)
131 *str_buf++ = *seq_buf++;
void ali_out_of_memory_if(bool cond)
char * ARB_strdup(const char *str)
unsigned char * sequence()
void * CALLOC(long i, long j)
unsigned char ali_base_to_number(char c, int no_gap_flag=0)
ALI_NORM_SEQUENCE(char *name, char *str)
void ali_sequence_to_string(unsigned char *sequence, unsigned long length)
void ali_fatal_error(const char *message, const char *func)
GB_write_int const char s