https://github.com/isebasus/hashmap
A very cool hashmap written in C
https://github.com/isebasus/hashmap
c funny hashmap
Last synced: 13 days ago
JSON representation
A very cool hashmap written in C
- Host: GitHub
- URL: https://github.com/isebasus/hashmap
- Owner: isebasus
- Created: 2022-06-02T02:56:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T03:54:15.000Z (over 3 years ago)
- Last Synced: 2025-10-28T05:26:35.272Z (8 months ago)
- Topics: c, funny, hashmap
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🗞️ hashmap
A silly, basic hashmap written in C.
# Documentation
The hashmap is created dynamically using `create_hashmap()` and freed using
`delete_hashmap()`.
```c
hashmap_t *create_hashmap(uint32_t size);
void delete_hashmap(hashmap_t **hm);
```
To insert unique elements, we can use `hashmap_insert()` and
to look up elements, we can use `hashmap_lookup`.
```c
void hashmap_insert(hashmap_t *hm, uint8_t *key, int value);
int hashmap_lookup(hashmap_t *hm, uint8_t *key);
```