BL_POS_LIST_SET_COUNT(3)

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

SYNOPSIS

BL_POS_LIST_SET_COUNT(ptr, new_count)

ARGUMENTS
ptr             Pointer to a bl_pos_list_t structure
new_count       New value for count

DESCRIPTION
Mutator macro for count. Use this macro to set count in a bl_pos_list_t structure from functions that are not members of the class. This allows separation of implementation from interface. While the implementation of the bl_pos_list_t structure may change, effort is made to preserve the API of functions and macros used to access it. Note that there is an equivalent function bl_pos_list_set_count(), which performs this function with data verification. Use the function version for more robust code with a slight performance penalty if the value of new_count is not validated by other means.

EXAMPLES
bl_pos_list_t   bl_pos_list;
size_t          new_count;
BL_POS_LIST_SET_COUNT(&bl_pos_list, new_count);

SEE ALSO
bl_pos_list_set_count(3)
See biolibc/pos-list.h for a full list of macros.