ChangeLog: I forgot to add the entries for the past few commits
[castfs.git] / test / filetree.c
blob7083debf825450970ae17e130bca1e3487ecbe6b
1 #include "hash.h"
3 int main(int argc, char *argv[])
5 char buf[1024];
6 cast_paths_ptr tmp;
7 stage_path = strdup("/this/is/the/stage/path");
8 castHashInit();
9 while(scanf("%s\n", buf) != EOF)
11 printf("%s\n", buf);
12 tmp = castHashGetValueOf(buf);
13 if(tmp)
15 printf("Get Value Of %s, %s\n", tmp->root_path, tmp->stage_path);
17 tmp = castHashSetValueOf(buf);
18 printf("Set Value Of %s, %s\n", tmp->root_path, tmp->stage_path);
20 castHashDestroy();
21 return 0;