6 const int methods[3] = {
12 const char *key = "key";
14 static struct aura_dict *
15 dict_create(int method)
23 d = aura_dict_new(2, method);
25 snprintf(first, strlen("first") + 1, "%s", "first");
26 snprintf(second, strlen("second") + 1, "%s", "second");
28 aura_dict_store(d, key, strlen(key), first, strlen("first") + 1);
29 aura_dict_store(d, key, strlen(key), second, strlen("second") + 1);
39 for (int i = 1; i <= 3; i++) {
45 aura_dict_fetch(d, "key", strlen("key"), (void **)&v, &len);
46 if (!strcmp("second", v) == 0) {
48 "aura_dict_store did not handle duplicates\n");