vt_append_len 3 2016-02-28 genvector manual

NAME

vt_append_len - append multiple elements to the vector

SYNPOSIS

int vt_append_len(vt_t *vect, const vt_elem_t *src_arr, GVT_SIZE_TYPE src_len)

DESCRIPTION

vt_append_len takes each element of array src_arr, assuming array length of src_len elements, and calls vt_append on each source element. In other words, an array of elements are appended at the end of a vector.

src_arr may not overlap with the array of vect.

Note: vt_t and the vt_ prefix are type-dependant, see vt_t(7).

Arguments:
vect A vector already initialized using vt_init.
src_arr Pointer to source elements.
src_len Number of elements to be copied from src_arr.

RETURN VALUE

Returns 0 on success or -1 on error. Error conditions include memory allocation or user supplied elem copy function failure.

SEE ALSO

vt_append_len 3 2016-02-28 genvector manual