| vector_replace, _vector_replace, vector_replace_array - replace elements of a vector |
#include <vector.h> #define vector_replace(v,i,obj) _vector_replace((v),(i),&(obj)) void _vector_replace (vector, int i, const void *ptr); void vector_replace_array (vector v, int i, const void *ptr, int n); |
| vector_replace replaces the single element at v[i] with object obj. |
| vector_replace_array replaces the n elements in the vector starting at index i with the n elements from the array ptr. |
| Array indexes are checked. |
| Richard Jones <rich@annexia.org> |
| GNU LGPL (see http://www.gnu.org/) |
| c2lib-1.2.13 |