diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-04-24 17:08:08 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-04-24 17:08:08 -0400 |
commit | 2b7a3a815fb5d0b5155deec5f613730e898e4100 (patch) | |
tree | 00db87ef554335e1c9871330703d86d0247a4ee8 /src/include/engine/utils.h | |
parent | 5b0d930e9e2605add559a70591573ffaa2fd8404 (diff) |
Update Documentation
Diffstat (limited to 'src/include/engine/utils.h')
-rw-r--r-- | src/include/engine/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |