Windows2003-3790/sdktools/masm/hash.c
2020-09-30 16:53:55 +02:00

17 lines
261 B
C

/*
** 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 );
}