Add a refer book
[fse.git] / main.c
blobd6c8c3f4421c287e0bc5f81a3d59c3ead303b551
1 #include <stdio.h>
2 #include <sys/stat.h>
3 #include <fcntl.h>
4 #include <unistd.h>
6 #include "hash_index.h"
8 extern void fetch(void);
10 static void init()
12 if (mkdir(HASH_DIR, 0700) < 0) {
13 printf("ERROR: init hash dir error!\n");
14 return;
19 int main(void)
21 init();
23 fetch();
24 return 0;