aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-07-22 03:03:09 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-07-22 03:03:09 +0300
commitcb1a40859029f33184355475e51fec95afb79a73 (patch)
tree5aea859d3a3e10ddd058beac9d6734d17979d560 /README.md
downloadc-wares-cb1a40859029f33184355475e51fec95afb79a73.tar.gz
c-wares-cb1a40859029f33184355475e51fec95afb79a73.zip
init
Just some C wares; hmap, list, optional, unit tests.
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37d4f4d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# C Wares
+
+This repo is intended as a collection of different data structures, and other
+small utilities in C, that I've collected over time. Some of the stuff here is
+written by me, some other stuff I've extracted from open source projects for my
+own personal use.
+
+This repo is not intended as a library or framework, but rather just a
+collection of useful simple stuff that is hard to come by when writing programs
+in C.
+
+## Wares
+
+Currently this repo contains the following:
+
+* hmap - simple generic hashmap with no macro vodoo-magic.
+* list - double-link listed as seen on the Linux Kernel™; extracted from Git.
+* optional - header-only poor man's optional "type templates" for C.
+* utest - micro header-only unit test "framework"
+* utils.h - various useful macros, needed by some of the "libs" in this repo,
+ but that can also be useful on their own.
+
+hmap, optional and utest have unit test of their own that serve as examples of
+their respective APIs. list.h doesn't have its own unit tests since it wasn't
+written by me.
+
+To run any of the tests just cd into the respective dir, run `make` and then
+`./*-test`.