Changeset 173 for trunk/archive/pslib/src/Utils/psHash.h
- Timestamp:
- Mar 9, 2004, 3:00:45 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/psHash.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/psHash.h
r141 r173 4 4 typedef struct HashTable psHash; 5 5 6 psHash *psHash New(int nbucket);// initial number of buckets7 void psHash Del(psHash *table, // hash table to be freed8 void (*itemDel)(void *item)); // how to free hashed data;6 psHash *psHashAlloc(int nbucket); // initial number of buckets 7 void psHashFree(psHash *table, // hash table to be freed 8 void (*itemFree)(void *item)); // how to free hashed data; 9 9 // or NULL 10 10 … … 12 12 const char *key, // key to use 13 13 void *data, // data to insert 14 void (*item Del)(void *item)); // how to free hashed data;14 void (*itemFree)(void *item)); // how to free hashed data; 15 15 // or NULL 16 16 void *psHashLookup(psHash *table, // table to lookup key in 17 17 const char *key); // key to lookup 18 18 19 void *psHashRemove(psHash *table, // table to lookup key in 20 const char *key); // key to lookup 19 21 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
