trie.h
pdirt/drv/utils/dnsresolv/trie.h · 238 B
From the archive pDirt-1_tar.gz
Download the archive « Back to the archive contents
#define MAXIPLEN 15
typedef struct _Mapping {
char key;
int val;
} Mapping;
typedef struct _Node
{ char *host;
struct _Node *branch[11];
} Node;
char *trieSearch(char *ip);
int insertTrie(char *ip, char *host);