copy_vector, new_subvector - copy a vector |
#include <vector.h> vector copy_vector (pool, vector v); vector new_subvector (pool, vector v, int i, int j); |
Copy a vector v into pool pool. If the vector contains pointers, then this function will not copy the pointed-to data as well: you will need to copy this yourself if appropriate. |
new_subvector creates a copy of part of an existing vector. The new vector contains the j-i elements of the old vector starting at element number i and finishing at element number j-1. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |