library/src/datastructures/BP-HashTable.cc
// string compare hash table keyed entry (binary only compare).  Returns ERR_SUCCESS if
// the keys match (are exactly the same).  Returns ERR_FAILURE if keys differ at all.
string compare hash table keyed entry (binary only compare).  Returns ERR_SUCCESS if
the keys match (are exactly the same).  Returns ERR_FAILURE if keys differ at all.
string compare hash table keyed entry ( binary only compare ) . Returns ERR_SUCCESS if the keys match ( are exactly the same ) . Returns ERR_FAILURE if keys differ at all .
BP_ERROR_T ht_strncmp_key
(
		P_BP_HASH_TABLE_KEYED_ENTRY entry,
		char  *buff,
		size_t buff_size
)
{
	if(!BP_StringIsReasonablePrintableString(buff, buff_size, BP_TRUE, BP_TRUE))
		return ERR_FAILURE;
	if(!ht_memmatch_key(entry, buff, buff_size))
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T ht_strncmp_key ( P_BP_HASH_TABLE_KEYED_ENTRY entry , char * buff , size_t buff_size ) { if ( ! BP_StringIsReasonablePrintableString ( buff , buff_size , BP_TRUE , BP_TRUE ) ) return ERR_FAILURE ; if ( ! ht_memmatch_key ( entry , buff , buff_size ) ) return ERR_FAILURE ; return ERR_SUCCESS ; }
string compare hash table keyed entry (binary only compare).
string compare hash table keyed entry ( binary only compare ) .
// run string check // after basic sanity check, run memmatch search to ensure entry matches buffer exactly // return indicating failure