hashadd.c
来自「一个c语言写做的编译器的源码」· C语言 代码 · 共 18 行
C
18 行
/*@A (C) 1992 Allen I. Holub */
#include <tools/debug.h>
#include <tools/hash.h>
/*----------------------------------------------------------------------
* Hash function for use with the functions in hash.c. Just adds together
* characters in the name.
*/
unsigned hash_add( name )
unsigned char *name;
{
unsigned h ;
for( h = 0; *name ; h += *name++ )
;
return h;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?