aboutsummaryrefslogtreecommitdiff
path: root/vector.h
blob: 0c7bdce6b667ff3d44f9a2b71a9e63ba1f8f4a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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_rmfirst(vec*);
void* vec_index(vec*, int);
void vec_free(vec*);
void* vec_pop(vec*);
void vec_print(vec*);
vec* vec_cp(vec*);
#endif