new_vector, _vector_new - allocate a new vector |
#include <vector.h> #define new_vector(pool,type) _vector_new ((pool), sizeof (type)) vector _vector_new (pool, size_t size); |
Allocate a new vector in pool of type type. The first form is just a macro which evaluates the size of type. The second form creates a vector with elements of the given size directly. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |