EPANET  2.1
 All Data Structures Files Functions Modules Pages
hash.h
1 /* HASH.H
2 **
3 ** Header file for Hash Table module HASH.C
4 **
5 */
6 
7 #ifndef HASH_H
8 #define HASH_H
9 
10 #define ENHASHTABLEMAXSIZE 128000
11 #define NOTFOUND 0
12 
13 typedef struct HTentryStruct
14 {
15  char *key;
16  int data;
17  struct HTentryStruct *next;
18 } ENHashEntry;
19 
20 typedef ENHashEntry *ENHashTable;
21 
22 ENHashTable *ENHashTableCreate(void);
23 int ENHashTableInsert(ENHashTable *, char *, int);
24 int ENHashTableFind(ENHashTable *, char *);
25 char *ENHashTableFindKey(ENHashTable *, char *);
26 void ENHashTableFree(ENHashTable *);
27 
28 #endif
Definition: hash.h:13