24 unsigned int b = 378551;
25 unsigned int a = 63689;
26 unsigned int hash = 0;
30 len = (int)strlen(name);
32 for(i = 0; i < len; name++, i++)
34 hash = hash*a+(unsigned)(*name);
38 return ((
int)(hash % (
unsigned)max));
int HashFunction(char *name, int max)