hashtable Documentation

This is the documentation for hashtable, an implementation of hash tables in C. This code is part of Inglorion's CStuff.

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", hashtable_lookup(table, "hello"));

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

  return 0;
}

Generated on Mon Jul 30 14:58:22 2007 for hashtable by  doxygen 1.5.1