library/src/datastructures/BP-HashTable.cc
// Checks to see if a key and value are the same.
Checks to see if a key and value are the same.
Checks to see if a key and value are the same .
BP_ERROR_T ht_entry_key_and_value_are_the_same
(
		P_BP_HASH_TABLE_KEYED_ENTRY entry
)
{
	if(!entry)
		return ERR_FAILURE;
	if(!entry->key)
		return ERR_FAILURE;
	if(!ht_memmatch_entry(entry, entry->key, bpstrlen(entry->key)+1))
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T ht_entry_key_and_value_are_the_same ( P_BP_HASH_TABLE_KEYED_ENTRY entry ) { if ( ! entry ) return ERR_FAILURE ; if ( ! entry -> key ) return ERR_FAILURE ; if ( ! ht_memmatch_entry ( entry , entry -> key , bpstrlen ( entry -> key ) + 1 ) ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Checks to see if a key and value are the same.
Checks to see if a key and value are the same .
// basic null checks // need to do a +1 byte check due to null terminators // return indicating failure