summaryrefslogtreecommitdiffstats
path: root/include/vector.h
blob: 5b05cbad4f599d4a3ae0a214cbdff1ea3688f637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _VECTOR_H_
#define _VECTOR_H_

#include <stdlib.h>

struct vector;

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

#endif