Compare commits

...

1 Commits

Author SHA1 Message Date
aae676c70c Rename get_filter to find. 2018-03-24 16:53:12 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ void* ht_get(ht* ht, const void* key);
* @param compare the comparison function used to compare adta.
* @return the data, or NULL if it is not found.
*/
void* ht_get_filter(ht* ht, const void* key, void* data, compare_func compare);
void* ht_find(ht* ht, const void* key, void* data, compare_func compare);
/**
* Removes a value from the hash table.
* @param ht the hash table to remove a value from.

View File

@@ -84,7 +84,7 @@ void* ht_get(ht* ht, const void* key) {
return data;
}
void* ht_get_filter(ht* ht, const void* key, void* data, compare_func compare) {
void* ht_find(ht* ht, const void* key, void* data, compare_func compare) {
void* found = NULL;
ht_node* search_node;
unsigned long key_int = ht->hash_func(key) % LIBDS_HT_SIZE;