7 streq(char *p, char *q) { return !strcmp(p, q); }
9 /* somewhere along the line
10 we'll kick this up a notch
14 Thunk_lookup(CTB ctb, char *key) {
17 if (!ctb || !ctb->key || !ctb->thk) break;
18 if (streq(key, ctb->key)) return ctb->thk;
27 hash(unsigned char *str) {
28 unsigned long hash = 5381;
31 hash = ((hash << 5) + hash) + c; // (hash * 33 + c) better