vt_init, vt_uninit 3 2016-02-28 genvector manual

NAME

vt_init, vt_uninit - initialize, uninitialize a vector

SYNPOSIS

void vt_init(vt_t *vect)

void vt_uninit(vt_t *vect)

DESCRIPTION

vt_init sets up an empty vector by resetting the non-optional fields of vect. If the vector is termianted (see vt_term(7)), the array is allocated and the terminator is placed, else the array is NULL.

vt_uninit clears vector vect, making it empty, releasing all memory allocated. If the vector is terminated, the array is still free'd, and set to NULL (the terminator is removed).

Note: vt_t and the vt_ prefix are type-dependant, see vt_t(7).

Arguments:
vect A vector allocated by the caller.

SEE ALSO

vt_init, vt_uninit 3 2016-02-28 genvector manual