From a25d22a1c26203b7c9e2dcd33f4c602b0f82684d Mon Sep 17 00:00:00 2001 From: Test_User Date: Mon, 7 Aug 2023 19:43:57 -0400 Subject: A bunch of stuff, mostly related to client support --- table.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'table.c') diff --git a/table.c b/table.c index 5dbc290..a06e034 100644 --- a/table.c +++ b/table.c @@ -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); -- cgit v1.2.3