6 int main(int argc, char **argv)
13 mhash = OSHash_Create();
17 fgets(buf, 1024, stdin);
18 tmp = strchr(buf, '\n');
22 if(strncmp(buf, "get ", 4) == 0)
24 printf("Getting key: '%s'\n", buf + 4);
25 printf("Found: '%s'\n", (char *)OSHash_Get(mhash, buf + 4));
29 printf("Adding key: '%s'\n", buf);
30 i = OSHash_Add(mhash, strdup(buf), strdup(buf));
32 printf("rc = %d\n", i);