| 102 | } |
| 103 | |
| 104 | void *cbm_ht_get(const CBMHashTable *ht, const char *key) { |
| 105 | if (!ht || !key) |
| 106 | return NULL; |
| 107 | cbm_vt_itr itr = cbm_vt_get(&ht->vt, key); |
| 108 | if (cbm_vt_is_end(itr)) |
| 109 | return NULL; |
| 110 | return itr.data->val; |
| 111 | } |
| 112 | |
| 113 | bool cbm_ht_has(const CBMHashTable *ht, const char *key) { |
| 114 | if (!ht || !key) |
no outgoing calls
no test coverage detected