cp_vector_destroy(3)

cp_vector(3) libcprops - cp_vector cp_vector(3)

NAME

cp_vector_destroy, cp_vector_destroy_custom - delete a vector object

SYNOPSIS

#include <cprops/vector.h>

void cp_vector_destroy(cp_vector *vector);

void cp_vector_destroy_custom(cp_vector *vector, cp_destructor_fn dtr);

DESCRIPTION

cp_vector_destroy deallocates a vector object. cp_vector_destroy_custom does the same, but also allows specifying a destructor function dtr, which, if not is, is called on each item stored in the vector.

MARCH 2006 libcprops.0.0.12