htable.h
contents ::
  asgn2.c
  htable.c
  htable.h
  mylib.c
  mylib.h

/***************************************************************************
 *                                                                         *
 *     Hash Table Program in C                                             *
 *                                                                         *
 *     COSC 242 Assignment 06/09/01                                        *
 *                                                                         *
 *     JAMES LITTLE                                                        *
 *                                                                         *
 ***************************************************************************/

#ifndef HTABLE_H
#define HTABLE_H

#include <stdio.h>

typedef struct hashtable *htable;

typedef enum hashing_e { LINEAR, DOUBLE } hashing_t;

extern htable htable_new(int size, hashing_t method);
extern void htable_destroy(htable ht);
extern int htable_insert(htable h, char *key);
extern int htable_search(htable h, char *key);
extern void htable_print(htable h, FILE *stream);
extern void htable_print_stats(htable ht, FILE *stream, int num_intervals);

#endif

James Little