aboutsummaryrefslogtreecommitdiff
path: root/collections/vector/vector.h
blob: 229b4b012ae08ed740d72f8a1ca2a5ed6d73835f (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_index(vec*, int);
void* vec_pop(vec*);
void vec_free(vec*);
void vec_clear(vec*);
void vec_print(vec*, char* (void*));
vec* vec_cp(vec*);
#endif