Initial Commit

This commit is contained in:
2014-07-14 20:45:23 +01:00
commit e34a32555b
7 changed files with 16405 additions and 0 deletions

21
list.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef LIST_H
#define LIST_H
#include "uthash.h"
#define DEFAULT_LISTFILE "/etc/blocklist.txt"
typedef struct entry entry;
struct entry {
unsigned long hash;
char* str;
UT_hash_handle hh;
};
int main(int argc, char* argv[]);
unsigned long hashstr(char *str);
void add_entry(char* str);
unsigned char find_entry(char* str);
#endif