vt_append_array 3 | 2016-02-28 | genvector manual |
---|
vt_append_array - append multiple elements to the vector
int vt_append_array(vt_t *vect, const vt_elem_t *src_arr)
vt_append_array does the same as vt_append_len, except it attempts to determine the length of src_arr automatically. This is possible only if the vector uses the terminator option. Else vt_append_array does not exist for the vector type.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.
Returns 0 on success or -1 on error. Error conditions include memory allocation or user supplied elem copy function failure.
vt_append_array 3 | 2016-02-28 | genvector manual |
---|