bl_pos_list_from_csv(3)

NAME
bl_pos_list_from_csv() - Convert comma-separated data to position list

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

SYNOPSIS
int     bl_pos_list_from_csv(bl_pos_list_t *pos_list, const char *bounds_str,
size_t array_size)

ARGUMENTS
pos_list    Pointer to the bl_pos_list_t to receive the list
list_str    Character string containing comma-separated list of positions
array_size  Initial array size

DESCRIPTION
Convert a comma-separated list of positions to a bl_pos_list_t list. The array_size argument should be your best guess at the final size of the list. Choosing a large enough value is not critical since it will be extended by bl_pos_list_add_position() if needed.

RETURN VALUES
The number of positions added to the list

SEE ALSO
bl_pos_list_allocate(3), bl_pos_list_add_position(3), bl_pos_list_free(3), bl_pos_list_sort(3)