vector_replace

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION

NAME

vector_replace, _vector_replace, vector_replace_array - replace elements of a vector

SYNOPSIS

#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);

DESCRIPTION

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.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

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

VERSION

c2lib-1.2.13