library/src/datastructures/BP-HashTable.cc
// memory compare hash table keyed entry (checks that string is reasonable printable)
memory compare hash table keyed entry (checks that string is reasonable printable)
memory compare hash table keyed entry ( checks that string is reasonable printable )
BP_ERROR_T ht_strncmp_entry
(
		P_BP_HASH_TABLE_KEYED_ENTRY entry,
		char  *buff,
		size_t buff_size
)
{
	if(!ht_entry_is_blob(entry))
		return ERR_FAILURE;
	if(!BP_StringIsReasonablePrintableString(buff, buff_size, BP_TRUE, BP_TRUE))
		return ERR_FAILURE;
	if(!ht_memmatch_entry(entry, buff, buff_size))
		return ERR_FAILURE;
	return ERR_FAILURE;
}
BP_ERROR_T ht_strncmp_entry ( P_BP_HASH_TABLE_KEYED_ENTRY entry , char * buff , size_t buff_size ) { if ( ! ht_entry_is_blob ( entry ) ) return ERR_FAILURE ; if ( ! BP_StringIsReasonablePrintableString ( buff , buff_size , BP_TRUE , BP_TRUE ) ) return ERR_FAILURE ; if ( ! ht_memmatch_entry ( entry , buff , buff_size ) ) return ERR_FAILURE ; return ERR_FAILURE ; }
memory compare hash table keyed entry (checks that string is reasonable printable)
memory compare hash table keyed entry ( checks that string is reasonable printable )
// ensure the entry is a blob // run string check // after basic sanity check, run memmatch search to ensure entry matches buffer exactly // return indicating failure