7 int main(int argc, char **argv)
14 mhash = OSHash_Create();
17 fgets(buf, 1024, stdin);
18 tmp = strchr(buf, '\n');
23 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));
27 printf("Adding key: '%s'\n", buf);
28 i = OSHash_Add(mhash, strdup(buf), strdup(buf));
30 printf("rc = %d\n", i);