This is a thread-safe, generic hashtable implementation in C.
See source/test.c for usage.
- Custom key and value types
- Thread-safe
- Simple, consistent API
- Compiles to .a library for use in other projects
- Use
maketo create the static library. (libhashtable.a) - Use
sudo make installto install the library and header files to PREFIX. - Use the clean rule to remove the new files:
make clean.
You can get the headers from the hashtable folder like this:
#include <hashtable/HashTable.h>
#include <hashtable/HNode.h>When compiling your files, add the library to your flags: -lhashtable.
Use the makefile's uninstall rule: sudo make uninstall. It'll remove the
files from PREFIX.