hashtable Documentation

This is the documentation for hashtable, an implementation of hash tables in C. This code is part of Inglorion's CStuff, and is available under the terms of the MIT license.

There are two main starting points for using the documentation:

Meanwhile, here is a small usage example:

#include <stdio.h>
#include <hashtable.h>

int main(int argc, char **argv) {
  /* Create a hash table. */
  struct hashtable *table = make_hashtable(hashtable_default_hash, 16);

  /* Add an entry to the hash table. */
  hashtable_add(table, "hello", "world");

  /* Retrieve and print entry. */
  printf("%s -> %s\n", "hello",
         (char*) hashtable_lookup(table, "hello"));

  /* Free hash table. */
  free_hashtable(table);

  return 0;
}
 All Data Structures Files Functions Variables Defines
Generated on Sun Jul 11 13:37:58 2010 for hashtable by  doxygen 1.6.3