vt_concat 3 2016-02-28 genvector manual

NAME

vt_concat - concatenate vectors

SYNPOSIS

int vt_concat(vt_t *dst, const vt_t *src)

DESCRIPTION

vt_concat calls vt_append_len to append all elements of the src vector to the end of the dst vector.

src may not be the same vector as dst.

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

Arguments:
dst A vector already initialized using vt_init. This one will grow.
src The element to add. NOTE: elem is NOT passed as a reference; when elem is a struct, consider using vt_concat_len() instead.

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_concat 3 2016-02-28 genvector manual