#include <biolibc/fastx.h>
-lbiolibc -lxtend
int bl_fastx_set_fasta(
bl_fastx_t *bl_fastx_ptr,
bl_fasta_t new_fasta
)
bl_fastx_ptr Pointer to the structure to set
new_fasta The new value for fasta
Mutator for fasta member in a bl_fastx_t structure. Use this function to set
fasta in a bl_fastx_t object from non-member functions. This function performs
a direct assignment for scalar or pointer structure members. If fasta is a
pointer, data previously pointed to should be freed before calling this
function to avoid memory leaks.
BL_FASTX_DATA_OK if the new value is acceptable and assigned
BL_FASTX_DATA_OUT_OF_RANGE otherwise
bl_fastx_t bl_fastx;
bl_fasta_t new_fasta;
if ( bl_fastx_set_fasta(&bl_fastx, new_fasta)
== BL_FASTX_DATA_OK )
{
}