3 unsigned hash(int keyc, HKEY *keyv[], int tabsize)
10 for(int i = 0; i < keyc; i++) {
11 switch(keyv[i]->type) {
13 for(int j = 0; keyv[i]->val.s[j]; j++) {
14 hashval = keyv[i]->val.s[j] + HASHNUM * hashval;
18 hashval = keyv[i]->val.i + HASHNUM * hashval;
24 return (hashval % tabsize);