aboutsummaryrefslogtreecommitdiff
path: root/src/vector.h
blob: e4a912aec02ddce8e95f0727bc0887c971f45c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>

struct vector {
    void **values;
    int size;
    int cap;
};

struct vector* vector_new(int cap);
int vector_push(struct vector *vec, void *value);
void vector_free(struct vector *vec);