コード例 #1
0
/**
 * Destroy hash_multimap container auxiliary function.
 */
void _hash_multimap_destroy_auxiliary(hash_multimap_t* phmmap_map)
{
    assert(phmmap_map != NULL);

    _pair_destroy_auxiliary(&phmmap_map->_pair_temp);
    _hashtable_destroy_auxiliary(&phmmap_map->_t_hashtable);

    phmmap_map->_bfun_keycompare = NULL;
    phmmap_map->_bfun_valuecompare = NULL;
}
コード例 #2
0
ファイル: cstl_hashtable.c プロジェクト: astrotycoon/libcstl
/**
 * Destroy hashtable.
 */
void _hashtable_destroy(_hashtable_t* pt_hashtable)
{
    _hashtable_destroy_auxiliary(pt_hashtable);
    free(pt_hashtable);
}