From e4b5445b3ca844e568a84abbf931a026a6ca6226 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 3 May 2023 22:57:53 -0400 Subject: C HaxServ --- table.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 table.h (limited to 'table.h') diff --git a/table.h b/table.h new file mode 100644 index 0000000..af37c7e --- /dev/null +++ b/table.h @@ -0,0 +1,17 @@ +#pragma once + +#include "types.h" + +struct table_index { + struct string name; + void *ptr; +}; + +struct table { + struct table_index *array; + size_t len; +}; + +extern int set_table_index(struct table *tbl, struct string name, void *ptr); +extern void * get_table_index(struct table tbl, struct string name); +extern void * remove_table_index(struct table *tbl, struct string name); // returns same as get_table_index -- cgit v1.2.3