哈希算法实例

时间:2015-11-30 06:33:15
【文件属性】:

文件名称:哈希算法实例

文件大小:4KB

文件格式:RAR

更新时间:2015-11-30 06:33:15

哈希算法

/* +++Date last modified: 05-Jul-1997 */ #include #include #include "hash.h" /* ** public domain code by Jerry Coffin, with improvements by HenkJan Wolthuis. ** ** Tested with Visual C 1.0 and Borland C 3.1. ** Compiles without warnings, and seems like it should be pretty ** portable. */ /* ** These are used in freeing a table. Perhaps I should code up ** something a little less grungy, but it works, so what the heck. */ static void (*function)(void *) = (void (*)(void *))NULL; static hash_table *the_table = NULL; /* Initialize the hash_table to the size asked for. Allocates space ** for the correct number of pointers and sets them to NULL. If it ** can't allocate sufficient memory, signals error by setting


【文件预览】:
hash.h
hash.c

网友评论