https://github.com/dennisfrancis/generic-hashtable
A generic hash table in C
https://github.com/dennisfrancis/generic-hashtable
c dynamic-library generic hashtable
Last synced: 6 months ago
JSON representation
A generic hash table in C
- Host: GitHub
- URL: https://github.com/dennisfrancis/generic-hashtable
- Owner: dennisfrancis
- License: other
- Created: 2012-12-18T09:00:51.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-01-10T10:49:26.000Z (about 1 year ago)
- Last Synced: 2025-03-27T23:41:51.498Z (10 months ago)
- Topics: c, dynamic-library, generic, hashtable
- Language: C
- Size: 35.2 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generic HashTable library in C
This is a hash table library in C where key type, value type and hash function are user defined.
# Source Files
1. `dll.h` - Doubly linked list header
2. `dll.c` - Doubly linked list implementation
3. `hash.h` - Hash table header
4. `hash.c` - Hash table implementation using separate chaining
5. `test_ll.c` - A sample program used to test the functionality of doubly linked list library.
6. `test_hash.c` - A sample program used to test the functionality of hash table library.
## How to build?
The project uses a standard cmake build system. To build:
```
cd build
cmake -S .. -B . -DCMAKE_BUILD_TYPE=Release # Use Debug for debug build or RelWithDebInfo for symbols enabled build.
make -j3 # This will build and run the test-suite.
```
The libraries and test binaries will be available in build once the above steps are done.