htable.h
contents ::
  app.c
  htable.c
  htable_copy.c
  htable.h
  mylib.c
  mylib.h

#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