| 82 | } |
| 83 | |
| 84 | void *cbm_ht_get(const CBMHashTable *ht, const char *key) { |
| 85 | if (!ht || !key) |
| 86 | return NULL; |
| 87 | cbm_vt_itr itr = cbm_vt_get(&ht->vt, key); |
| 88 | if (cbm_vt_is_end(itr)) |
| 89 | return NULL; |
| 90 | return itr.data->val; |
| 91 | } |
| 92 | |
| 93 | bool cbm_ht_has(const CBMHashTable *ht, const char *key) { |
| 94 | if (!ht || !key) |
no outgoing calls
no test coverage detected