About 109,000 results
Open links in new tab
  1. c - Implement a hash table - Stack Overflow

    Oct 22, 2016 · I'm trying to create an efficient look-up table in C. I have an integer as a key and a variable length char* as the value. I've looked at uthash, but this requires a fixed length char* …

  2. Why are there no hashtables in the C standard library?

    May 25, 2011 · Apple's Core Foundation library has a hash table (documentation) Note: Yes you can insert any object as key or value. UTHash is a hash table library (documentation) Another …

  3. c - hash function for string - Stack Overflow

    I'm working on hash table in C language and I'm testing hash function for string. The first function I've tried is to add ascii code and use modulo (% 100) but i've got poor results with the first ...

  4. data structures - How does a hash table work? - Stack Overflow

    Instead of using the key directly, a hash table first applies a mathematical hash function to consistently convert any arbitrary key data to a number, then using that hash result as the key.

  5. What is a hash table and how do you make it in C? [closed]

    A hash table or associative array is a popular data structure used in programming. A hash table is just a linked list (I'll get to what a linked list is later on) with a hash function.

  6. hashmap - Generic hashtable in C - Stack Overflow

    Dec 21, 2016 · A generic hashtable in C is a bad idea. a neat implementation will require function pointers, which are slow, since these functions cannot be inlined (the general case will need at …

  7. How to write a hash function in C? - Stack Overflow

    Feb 6, 2016 · A cryptographic hash emphasizes making it difficult for anybody to intentionally create a collision. For a hash table, the emphasis is normally on producing a reasonable …

  8. Quick Way to Implement Dictionary in C - Stack Overflow

    One of the things which I miss while writing programs in C is a dictionary data structure. What's the most convenient way to implement one in C? I am not looking for performance, but ease of …

  9. Super high performance C/C++ hash map (table, dictionary)

    Jul 21, 2010 · I need to map primitive keys (int, maybe long) to struct values in a high-performance hash map data structure. My program will have a few hundred of these maps, …

  10. c - How to use the Linux kernel hashtable API? - Stack Overflow

    Why our struct has to have the struct h_list inside it? If we're gonna access our struct through the struct h_list our struct shouldn't be within struct h_list and not the opposite? That's because of …