blob: 99a8efa7717b4ad7fac605995e168ab2cabbe8e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef UTILS_H
#define UTILS_H
#include "mdb.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
|