sam-buff-mutators.c
/***************************************************************************
 *  Library:
 *      #include <biolibc/sam-buff.h>
 *      -lbiolibc -lxtend
 *
 *  Description:
 *      Mutator for discarded_alignments member in a bl_sam_buff_t structure.
 *      Use this function to set discarded_alignments in a bl_sam_buff_t object
 *      from non-member functions.  This function performs a direct
 *      assignment for scalar or pointer structure members.  If
 *      discarded_alignments is a pointer, data previously pointed to should
 *      be freed before calling this function to avoid memory
 *      leaks.
 *
 *  Arguments:
 *      bl_sam_buff_ptr Pointer to the structure to set
 *      new_discarded_alignments The new value for discarded_alignments
 *
 *  Returns:
 *      BL_SAM_BUFF_DATA_OK if the new value is acceptable and assigned
 *      BL_SAM_BUFF_DATA_OUT_OF_RANGE otherwise
 *
 *  Examples:
 *      bl_sam_buff_t   bl_sam_buff;
 *      int64_t        new_discarded_alignments;
 *
 *      if ( bl_sam_buff_set_discarded_alignments(&bl_sam_buff, new_discarded_alignments)
 *              == BL_SAM_BUFF_DATA_OK )
 *      {
 *      }
 *
 *  See also:
 *      (3)
 *
 *  History: 
 *  Date        Name        Modification
 *  2022-02-07  gen-get-set Auto-generated from sam-buff.h
 ***************************************************************************/
#include 
-lbiolibc -lxtend

Mutator for discarded_alignments member in a bl_sam_buff_t structure.
Use this function to set discarded_alignments in a bl_sam_buff_t object
from non-member functions.  This function performs a direct
assignment for scalar or pointer structure members.  If
discarded_alignments is a pointer, data previously pointed to should
be freed before calling this function to avoid memory
leaks.

bl_sam_buff_ptr Pointer to the structure to set
new_discarded_alignments The new value for discarded_alignments

BL_SAM_BUFF_DATA_OK if the new value is acceptable and assigned
BL_SAM_BUFF_DATA_OUT_OF_RANGE otherwise








#include - lbiolibc - lxtend Mutator for discarded_alignments member in a bl_sam_buff_t structure . Use this function to set discarded_alignments in a bl_sam_buff_t object from non - member functions . This function performs a direct assignment for scalar or pointer structure members . If discarded_alignments is a pointer data previously pointed to should be freed before calling this function to avoid memory leaks . bl_sam_buff_ptr Pointer to the structure to set new_discarded_alignments The new value for discarded_alignments BL_SAM_BUFF_DATA_OK if the new value is acceptable and assigned BL_SAM_BUFF_DATA_OUT_OF_RANGE otherwise
int     bl_sam_buff_set_discarded_alignments(
	    bl_sam_buff_t *bl_sam_buff_ptr,
	    int64_t new_discarded_alignments
	)
{
    if ( false )
	return BL_SAM_BUFF_DATA_OUT_OF_RANGE;
    else
    {
	bl_sam_buff_ptr->discarded_alignments = new_discarded_alignments;
	return BL_SAM_BUFF_DATA_OK;
    }
}
int bl_sam_buff_set_discarded_alignments ( bl_sam_buff_t * bl_sam_buff_ptr , int64_t new_discarded_alignments ) { if ( false ) return BL_SAM_BUFF_DATA_OUT_OF_RANGE ; else { bl_sam_buff_ptr -> discarded_alignments = new_discarded_alignments ; return BL_SAM_BUFF_DATA_OK ; } }
Library:
      #include <biolibc/sam-buff.h>
      -lbiolibc -lxtend
Library : #include <biolibc / sam - buff . h > - lbiolibc - lxtend