summaryrefslogtreecommitdiffhomepage
path: root/Readme.mdown
blob: fbde033206b144b471cfa5871eb0671287adf9d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Arraylist

Generic arraylist single header implementation in C.  

## How to use
Define it in your main file like so:
```
#define ARRAYLIST_IMPLEMENTATION
#include "arraylist.h"
#undef ARRAYLIST_IMPLEMENTATION
```
and for any other files you would also like to use it in simply do
```
#include "arraylist.h"
```
---
Define `ARRAYLIST_DEFAULT_SIZE` to a value of your choice to change the default initialized size(number of elements) of an arraylist.