src/hashing/hash_table.h
/**
 * Create an iterator for the given hash table.
 */
Create an iterator for the given hash table.
Create an iterator for the given hash table .
inline HashTableIterator* hash_table_iterator_create(HashTable* h) {
	HashTableIterator* iterator = (HashTableIterator*) malloc(sizeof(HashTableIterator));
	assert(iterator != NULL);
	iterator->hash_table = h;
	iterator->bucket_index = 0;
	iterator->chain_index = 0;
	return iterator;
}
inline HashTableIterator * hash_table_iterator_create ( HashTable * h ) { HashTableIterator * iterator = ( HashTableIterator * ) malloc ( sizeof ( HashTableIterator ) ) ; assert ( iterator != NULL ) ; iterator -> hash_table = h ; iterator -> bucket_index = 0 ; iterator -> chain_index = 0 ; return iterator ; }
Create an iterator for the given hash table.
Create an iterator for the given hash table .