File: xsearch.h

package info (click to toggle)
eigensoft 8.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,936 kB
  • sloc: ansic: 33,392; perl: 717; makefile: 104; sh: 10
file content (26 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <search.h>  

int xfindit(char *ss)   ; 
int  xloadsearchx(char **ss, int n)   ; 
int finddup(char **ss, int n) ;
void xloadsearch(char **ss, int n)   ; 
void xdestroy()  ;

void xhcreate (int n)  ;
void xhdestroy()  ;
ENTRY *xhsearch(ENTRY item, ACTION act)  ;

int xlookup(char *key, ACTION act)  ;
int xhash (char *key)  ;
int xhash1(int ww)  ;
int xhash2 (int x)  ;
int xcshift(int x, int shft)  ;
int stringhash(char *key) ;
void setfancyhash(int val) ;
long xlhash (long x) ;  
int xshash (int x) ;  
int fnv_hash(char *strng) ;

#define FNV_PRIME           0x01000193
#define FNV_OFFSET_BASIS    0x811c9dc5