cp_vector_element_at(3)

cp_vector(3) libcprops - cp_vector cp_vector(3)

NAME

cp_vector_element_at - return the element at the given position

SYNOPSIS

#include <cprops/vector.h>

void *cp_vector_element_at(cp_vector *vector, int index);

DESCRIPTION

cp_vector_element_at returns the element set at the given index. Index ranges from 0 to cp_vector_size() - 1.

RETURN VALUE

the element at the given position or NULL if no element is set or the index is out of range.

SEE ALSO

cp_vector_size(3)

MARCH 2006 libcprops-0.0.12