| 175 | } |
| 176 | |
| 177 | const char *cbm_ht_get_key(const CBMHashTable *ht, const char *key) { |
| 178 | if (!ht || !key) |
| 179 | return NULL; |
| 180 | cbm_vt_itr itr = cbm_vt_get(&ht->vt, key); |
| 181 | HT_LOOKED_UP(ht, key, !cbm_vt_is_end(itr)); |
| 182 | if (cbm_vt_is_end(itr)) |
| 183 | return NULL; |
| 184 | return itr.data->key; |
| 185 | } |
| 186 | |
| 187 | void *cbm_ht_delete(CBMHashTable *ht, const char *key) { |
| 188 | if (!ht || !key) |
no outgoing calls
no test coverage detected