bl_fasta_set_seq_cpy(3)

LIBRARY
#include <biolibc/fasta.h>
-lbiolibc -lxtend

SYNOPSIS

int     bl_fasta_set_seq_cpy(bl_fasta_t *bl_fasta_ptr, char * new_seq, size_t array_size)

ARGUMENTS
bl_fasta_ptr    Pointer to the structure to set
new_seq         The new value for seq
array_size      Size of the seq array.

DESCRIPTION
Mutator for seq member in a bl_fasta_t structure. Use this function to set seq in a bl_fasta_t variable from non-member functions. This function copies the array pointed to by new_seq to ->seq. Note that there is an equivalent macro BL_FASTA_SET_SEQ(), which performs this function with no data verification or function call overhead. Use the macro version to maximize performance where the validity of new_seq is guaranteed by other means.

EXAMPLES
bl_fasta_t      bl_fasta;
char *          new_seq;
size_t          array_size;
if ( bl_fasta_set_seq(&bl_fasta, new_seq, array_size) == BL_DATA_OK )
{
}

SEE ALSO
BL_FASTA_SET_SEQ(3)