summaryrefslogtreecommitdiffstats
path: root/private/sdktools/masm/hash.c
blob: 1698ca539a73dd025fd1638670503b1914f88d85 (plain) (blame)
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 );
	}