bl_gff_set_attributes_cpy(3)

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

SYNOPSIS

int     bl_gff_set_attributes_cpy(bl_gff_t *bl_gff_ptr, char * new_attributes, size_t array_size)

ARGUMENTS
bl_gff_ptr      Pointer to the structure to set
new_attributes  The new value for attributes
array_size      Size of the attributes array.

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

EXAMPLES
bl_gff_t        bl_gff;
char *          new_attributes;
size_t          array_size;
if ( bl_gff_set_attributes(&bl_gff, new_attributes, array_size) == BL_DATA_OK )
{
}

SEE ALSO
BL_GFF_SET_ATTRIBUTES(3)