bl_sam_set_cigar_ae(3)

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

SYNOPSIS

int     bl_sam_set_cigar_ae(bl_sam_t *bl_sam_ptr, size_t c, char new_cigar_element)

ARGUMENTS
bl_sam_ptr      Pointer to the structure to set
c               Subscript to the cigar array
new_cigar_element The new value for cigar[c]

DESCRIPTION
Mutator for an array element of cigar member in a bl_sam_t structure. Use this function to set an element of the array cigar in a bl_sam_t variable from non-member functions. Note that there is an equivalent macro BL_SAM_SET_CIGAR_AE(), which performs this function with no data verification or function call overhead. Use the macro version to maximize performance where the validity of new_cigar_element is guaranteed by other means.

EXAMPLES
bl_sam_t        bl_sam;
size_t          c;
char            new_cigar_element;
if ( bl_sam_set_cigar(&bl_sam, c, new_cigar_element) == BL_DATA_OK )
{
}

SEE ALSO
BL_SAM_SET_CIGAR_AE(3)