#include "hash.h"
This page has information from files
hash.h and hash.c.
Contents
Public Routines in File hash.c
Index
Details
void fprint_hash_mem(FILE *fp, BOOL heading);
This routine prints (to FILE *fp) memory usage statistics for data types
associated with the hash package.
The Boolean argument heading tells whether to print a heading on the table.
void hash_delete(void *v, unsigned hashval, Hashtab h,
BOOL (*id_func) (void *, void *));
void hash_destroy(Hashtab h);
Free all of the memory used by the given hash table. Do not
refer to the table after calling this routine. The hash table
need not be empty;
void hash_info(Hashtab h);
Hashtab hash_init(int size);
Allocate and initialize a hash table of the given size.
void hash_insert(void *v, unsigned hashval, Hashtab h);
void *hash_lookup(void *v, unsigned hashval, Hashtab h,
BOOL (*id_func) (void *, void *));
void p_hash_mem();
This routine prints (to stdout) memory usage statistics for data types
associated with the hash package.
Public Definitions in File hash.h
Introduction