diff options
Diffstat (limited to 'src/hsearch.h')
-rw-r--r-- | src/hsearch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hsearch.h b/src/hsearch.h index ec81cc3..7e9d770 100644 --- a/src/hsearch.h +++ b/src/hsearch.h @@ -14,6 +14,8 @@ typedef union htab_value { struct htab * htab_create(size_t); void htab_destroy(struct htab *); htab_value* htab_find(struct htab *, const char* key); +/* same as htab_find, but can retrieve the saved key (for freeing) */ +htab_value* htab_find2(struct htab *htab, const char* key, char **saved_key); int htab_insert(struct htab *, char*, htab_value); int htab_delete(struct htab *htab, const char* key); size_t htab_next(struct htab *, size_t iterator, char** key, htab_value **v); |