vector_insert

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION

NAME

vector_insert, _vector_insert, vector_insert_array - insert elements into a vector

SYNOPSIS

#include <vector.h>

#define vector_insert(v,i,obj) _vector_insert((v),(i),&(obj))
void _vector_insert (vector, int i, const void *ptr);
void vector_insert_array (vector v, int i, const void *ptr, int n);

DESCRIPTION

vector_insert inserts a single object obj before element i. All other elements are moved up to make space.
vector_insert_array inserts an array of n objects starting at address ptr into the vector before index i.
Array indexes are checked.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

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

VERSION

c2lib-1.2.13