From 541bd6a040566da752999c8826c6a637a8bb7d7c Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 1 Aug 2022 13:54:20 -0400 Subject: change to single header --- Readme.mdown | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Readme.mdown') diff --git a/Readme.mdown b/Readme.mdown index f5019b3..fbde033 100644 --- a/Readme.mdown +++ b/Readme.mdown @@ -1,3 +1,17 @@ # Arraylist -Generic arraylist implementation in C. WIP. +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. -- cgit v1.2.3