[c] hash table functions