#include <stdlib.h>
Functions | |
struct vector * | vector_create (size_t size) |
void | vector_destroy (struct vector *v) |
int | vector_add (struct vector *v, void *data) |
int | vector_iterate (struct vector *v, const void *data, int(*fcn)(const void *a, const void *b)) |
References vector::cur_elems, vector::data, DEFAULT_VECTOR_GROWTH, vector::max_elems, NULL, and vector::size.
Referenced by ct_filter_add_netmask().
References vector::cur_elems, vector::data, DEFAULT_VECTOR_MEMBERS, vector::max_elems, NULL, vector::size, and size.
Referenced by ct_filter_create().
References vector::data.
Referenced by ct_filter_destroy().
int vector_iterate | ( | struct vector * | v, |
const void * | data, | ||
int(*)(const void *a, const void *b) | fcn | ||
) |
References vector::cur_elems, vector::data, and vector::size.
Referenced by ct_filter_add_netmask().