vt_concat 3 | 2016-02-28 | genvector manual |
---|
vt_concat - concatenate vectors
int vt_concat(vt_t *dst, const vt_t *src)
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.
Returns 0 on success or -1 on error. Error conditions include memory allocation or user supplied elem copy function failure.
vt_concat 3 | 2016-02-28 | genvector manual |
---|