00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef HashFile
00015 #define HashFile
00016
00017 typedef struct node *ListPtr;
00018
00019 typedef struct node {
00020 int index;
00021 char *entry;
00022 ListPtr next;
00023 } List;
00024
00025 typedef struct {
00026 ListPtr *list;
00027 int size;
00028 } HashTable;
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 HashTable *NewHashTable(int size);
00034 int Insert (HashTable * table, char * name, int index );
00035 int GetIndex( HashTable * table, char name[] );
00036 int DeleteHashTable(HashTable * table);
00037 #ifdef __cplusplus
00038 }
00039 #endif
00040
00041 #endif