add Hash_GetList to get a list of elements in the hash table (unsorted)

This commit is contained in:
Bill Currie 2001-10-02 23:17:25 +00:00
parent 081a44e5bc
commit 40d0490b7c
2 changed files with 35 additions and 0 deletions

View file

@ -114,4 +114,10 @@ void *Hash_DelElement (hashtab_t *tab, void *ele);
*/
unsigned long Hash_String (const char *str);
/*
return a list of all elements in the table. it is the caller's
responsibilty to free() the array. Null terminated.
*/
void **Hash_GetList (hashtab_t *tab);
#endif // __hash_h