aboutsummaryrefslogtreecommitdiff
path: root/collections/vector/vector.h
blob: 54e40a7ad5fc63a53547e3f35ba5919df07cd26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef VECTOR_H
#define VECTOR_H

typedef struct vector vec;

vec* vec_new();
vec* vec_with_capacity(int);
int vec_size(vec*);
void vec_push(vec*, void*);
void* vec_index(vec*, int);
void* vec_pop(vec*);
void vec_free(vec*);
void vec_clear(vec*);
void vec_print(vec*, char* (void*));
#endif