vector_insert, _vector_insert, vector_insert_array - insert elements into a vector |
#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); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |