#include <stdio.h>#include <stdlib.h>#include "../include/cupl.h"#include "../include/ds.h"Go to the source code of this file.
Functions | |
| unsigned int | cupl_hash_get (char *buf, unsigned int len, int tbl_size) |
|
||||||||||||||||
|
Definition at line 42 of file ds.c. Referenced by main(). 00043 {
00044 unsigned int h;
00045
00046 h = CDB_HASHSTART;
00047 while (len) {
00048 h = cdb_hashadd(h,*buf++);
00049 --len;
00050 }
00051
00052 return h % tbl_size;
00053 }
|
1.3.9.1