4 |
|
*/ |
5 |
|
#ifndef _RAD_LOOKUP_H_ |
6 |
|
#define _RAD_LOOKUP_H_ |
7 |
+ |
|
8 |
+ |
#include <string.h> /* strcmp() */ |
9 |
+ |
|
10 |
|
#ifdef __cplusplus |
11 |
|
extern "C" { |
12 |
|
#endif |
13 |
|
|
11 |
– |
|
12 |
– |
#include "copyright.h" |
13 |
– |
|
14 |
|
typedef struct { |
15 |
|
char *key; /* key name */ |
16 |
|
unsigned long hval; /* key hash value (for efficiency) */ |
77 |
|
* in the LU_TAB structure. The final action of lu_done is to free the |
78 |
|
* allocated table itself. |
79 |
|
*/ |
80 |
– |
|
81 |
– |
#include <string.h> /* strcmp() */ |
80 |
|
|
81 |
|
extern int lu_init(LUTAB *tbl, int nel); |
82 |
|
extern unsigned long lu_shash(char *s); |