diff options
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 |