Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyuichi/xhash
super tiny hash table
https://github.com/nyuichi/xhash
Last synced: 3 months ago
JSON representation
super tiny hash table
- Host: GitHub
- URL: https://github.com/nyuichi/xhash
- Owner: nyuichi
- License: bsd-2-clause
- Created: 2013-12-04T06:17:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-27T15:18:28.000Z (over 10 years ago)
- Last Synced: 2023-04-09T10:58:52.150Z (almost 2 years ago)
- Language: C
- Size: 574 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xhash - super tiny hash table [![Build Status](https://travis-ci.org/wasabiz/xhash.png)](https://travis-ci.org/wasabiz/xhash)
- written in pure C99
- all components are in single header file# Usage
```c
xhash x;xh_init_str(&x, sizeof(mystruct));
xh_put_str(&x, "aaa", mystructA);
xh_put_str(&x, "bbb", mystructB);
xh_put_str(&x, "ccc", mystructC);xh_val(xh_get(&x, "aaa"), mystruct) == mystructA;
xh_destroy(&x);
```# License
This software is licensed under the 2-clause BSD license. See LICENSE for details.
# Version
- 2014.09.16 - Version 0.5
The implementation switches to ordered hash map (hash map with doubly-linked list).
Accordingly, iteration interface changed.- 2014.08.01 - Version 0.4.1
- 2014.06.14 - Version 0.4
- 2014.03.25 - Version 0.3.4
- 2014.03.24 - Version 0.3.3
- 2014.03.20 - Version 0.3# Auther
Yuichi Nishiwaki