Skip to content

nailik-git/ht.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ht.h

this is a header-only library for a hash table, simply define KEY_TYPE, VAL_TYPE, HASH(key), CMP(key1, key2) and include the library and you're ready to go

if you need the declarations elsewhere, but not the implementation, you can define HT_NO_IMPLEMENTATION

for further usage, there are comments describing the behaviour of the functions in the header and you can look into the example

you can also use this library multiple times in the same project with different types, to see how that works, look into the other example

About

(more or less) generic hash table in c

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages