28 lines
554 B
C
Executable File
28 lines
554 B
C
Executable File
/* HASH.H
|
|
**
|
|
** Header file for Hash Table module HASH.C
|
|
**
|
|
*/
|
|
|
|
#ifndef HASH_H
|
|
#define HASH_H
|
|
|
|
#define ENHASHTABLEMAXSIZE 128000
|
|
#define NOTFOUND 0
|
|
|
|
typedef struct HTentryStruct
|
|
{
|
|
char *key;
|
|
int data;
|
|
struct HTentryStruct *next;
|
|
} ENHashEntry;
|
|
|
|
typedef ENHashEntry *ENHashTable;
|
|
|
|
ENHashTable *ENHashTableCreate(void);
|
|
int ENHashTableInsert(ENHashTable *, char *, int);
|
|
int ENHashTableFind(ENHashTable *, char *);
|
|
char *ENHashTableFindKey(ENHashTable *, char *);
|
|
void ENHashTableFree(ENHashTable *);
|
|
|
|
#endif |