1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* ** hash : hashes the given string by adding all the chars in the string. */ unsigned short hash ( name ) register char *name; { register unsigned short i = 0; register unsigned short c; while (c = *name++) i += c; return( i ); }