librnr/hash.c
bool_t hash_delete(hash_t *hash, void *key)
{
  hnode_t *node;

  if( (node = hash_lookup(hash, key)) != NULL )
  {
    hash_node_unlink(hash, node);
    hnode_destroy(node, hash->freenodedata);
    return true;
  }
  return false;
}
/*!
 * \brief Unlink and delete a hash node with the given key from the hash table. 
 *
 * The user data and key are deallocated as per the any user supplied
 * data free function. The node is then deallocated.
 *
 * \param hash  Hash table.
 * \param key   Hash key.
 *
 * \return Returns true if successful, else returns false.
 *
 * \exception "Not Initialzed"  Hashing not initialized.
 * \exception "Verification Failed" Only if \ref hash_self_verify enabled.
 */
\brief Unlink and delete a hash node with the given key from the hash table.
The user data and key are deallocated as per the any user supplied
data free function. The node is then deallocated.

\param hash  Hash table.
\param key   Hash key.

\return Returns true if successful, else returns false.

\exception "Not Initialzed"  Hashing not initialized.
\exception "Verification Failed" Only if \ref hash_self_verify enabled.
\ brief Unlink and delete a hash node with the given key from the hash table . The user data and key are deallocated as per the any user supplied data free function . The node is then deallocated . \ param hash Hash table . \ param key Hash key . \ return Returns true if successful else returns false . \ exception " Not Initialzed " Hashing not initialized . \ exception " Verification Failed " Only if \ ref hash_self_verify enabled .
bool_t hash_delete(hash_t *hash, void *key)
{
  hnode_t *node;
  if( (node = hash_lookup(hash, key)) != NULL )
  {
    hash_node_unlink(hash, node);
    hnode_destroy(node, hash->freenodedata);
    return true;
  }
  return false;
}
bool_t hash_delete ( hash_t * hash , void * key ) { hnode_t * node ; if ( ( node = hash_lookup ( hash , key ) ) != NULL ) { hash_node_unlink ( hash , node ) ; hnode_destroy ( node , hash -> freenodedata ) ; return true ; } return false ; }
\brief Unlink and delete a hash node with the given key from the hash table.
\ brief Unlink and delete a hash node with the given key from the hash table .