This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/src/hashmap
Dan Cross d8c32639e4 Trivial whitespace cleanups
Delete trailing whitespace at the ends of lines;
ensure files have newlines at the end.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-11 21:36:35 +10:00
..
README Redo Make file setup.. please standby 2017-09-25 13:27:22 +10:00
hashmap.c Trivial whitespace cleanups 2018-10-11 21:36:35 +10:00
hashmap.h clang-format 2018-10-09 15:48:42 +10:00
main.c Trivial whitespace cleanups 2018-10-11 21:36:35 +10:00

README

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

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.