Need help with c_hashmap?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

petewarden
475 Stars 192 Forks Other 5 Commits 17 Opened issues

Description

A simple string hashmap in C

Services available

!
?

Need anything else?

Contributors list

# 55,606
Objecti...
radeon
opencl
mac
3 commits
# 35,626
2d-game
phaser-...
cpp11
lambda
1 commit

This is a simple C hashmap, using strings for the keys.

Originally based on code by Eliot Back at http://elliottback.com/wp/hashmap-implementation-in-c/ Reworked by Pete Warden - http://petewarden.typepad.com/searchbrowser/2010/01/c-hashmap.html

This version is now deprecated, since it's unmaintained. @sheredom has a newer version at https://github.com/sheredom/hashmap.h

main.c contains an example that tests the functionality of the hashmap module. To compile it, run something like this on your system: gcc main.c hashmap.c -o hashmaptest

There are no restrictions on how you reuse this code.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.