diff options
Diffstat (limited to '')
-rw-r--r-- | table.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -145,6 +145,12 @@ void * get_table_index(struct table tbl, struct string name) { return tbl.array[index].ptr; } +uint8_t has_table_index(struct table tbl, struct string name) { + uint8_t exists; + search(tbl, name, &exists); + return exists; +} + void * remove_table_index(struct table *tbl, struct string name) { uint8_t exists; uint64_t index = search(*tbl, name, &exists); |