From 2b7a3a815fb5d0b5155deec5f613730e898e4100 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Thu, 24 Apr 2025 17:08:08 -0400 Subject: Update Documentation --- src/include/engine/utils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/include/engine/utils.h (limited to 'src/include/engine/utils.h') diff --git a/src/include/engine/utils.h b/src/include/engine/utils.h new file mode 100644 index 0000000..54bfc17 --- /dev/null +++ b/src/include/engine/utils.h @@ -0,0 +1,16 @@ +#ifndef UTILS_H +#define UTILS_H + +#include "engine.h" + +// dellist: deletes the provided table +void dellist(tablist_t *list); + +/* hash: calculates the DJB2 hash of a string, + * and returns that mod TABLEN */ +int hash(char *str); + +// copytab: copys table src into table dst +tablist_t *copytab(tablist_t *dst, tablist_t *src); + +#endif -- cgit v1.2.3