summaryrefslogtreecommitdiffhomepage
path: root/Readme.mdown
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-08-01 13:54:20 -0400
committerrealtradam <[email protected]>2022-08-01 13:54:20 -0400
commit541bd6a040566da752999c8826c6a637a8bb7d7c (patch)
tree07996c8fcb83ff3356695e4e1eade83860b36c22 /Readme.mdown
parent4b2ec7c721eae2b95e57ee09ba5234abdb9755dc (diff)
downloadarraylist-master.tar.gz
arraylist-master.zip
change to single headerHEADmaster
Diffstat (limited to 'Readme.mdown')
-rw-r--r--Readme.mdown16
1 files changed, 15 insertions, 1 deletions
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.