copy_vector

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION

NAME

copy_vector, new_subvector - copy a vector

SYNOPSIS

#include <vector.h>

vector copy_vector (pool, vector v);
vector new_subvector (pool, vector v, int i, int j);

DESCRIPTION

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.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

c2lib-1.2.13