summaryrefslogtreecommitdiff
path: root/src/include/engine/utils.h
blob: fe6022f0d174cfd19f68f65846b13b1cbc7a62a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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