hash map in C ( like std::map in c++ )?

Started by
3 comments, last by demonkoryu 16 years, 4 months ago
Hello, Do u know if there is any good hash map library in C ( some thing similar to std::map ). I can only use C for my project and cannot use c++ standard library or stl. Please point me to such a resource if u know any. Thank you. Bye.
Advertisement
std::map isn't a hash map, it's typically a red black tree. Do you really want a hash map (I.e. can the type you want to store in it hash correctly?), or do you want something like std::map?

Either way, what type are you storing in it? C doesn't have templates, so you'll need one implementaion of the data structure for every type you want to use with it.
yes i am looking for something similar to std::map in C. The types i want to store are,
key : char*
value : double

thanks
bye.
I dont care if it uses red black tree or some hash function. All I need is a fast way of retrieving double values given a char * key.

thanks
bye.
[google]
k?

This topic is closed to new replies.

Advertisement