home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / MISC / SRC / UPGRADE / HASH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-28  |  344 b   |  16 lines

  1. struct bucket {
  2.     char **data;
  3.     int allocated;
  4.     int firstFree; /* as in data[firstFree] */
  5. };
  6.  
  7. struct hash_table {
  8.     int size;
  9.     struct bucket *bucket;
  10. };
  11.  
  12. struct hash_table *new_table(int size);
  13. char *in_table(struct hash_table *t, char *s);
  14. void add_to_table(struct hash_table *t, char *s);
  15. void hash_stats(struct hash_table *t);
  16.