summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/sso_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/sso_map.c')
-rw-r--r--misc/examples/sso_map.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/misc/examples/sso_map.c b/misc/examples/sso_map.c
deleted file mode 100644
index 70450e21..00000000
--- a/misc/examples/sso_map.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <stc/cstr.h>
-#define i_key_str
-#define i_val_str
-#include <stc/cmap.h>
-
-int main()
-{
- cmap_str m = {0};
- cmap_str_emplace(&m, "Test short", "This is a short string");
- cmap_str_emplace(&m, "Test long ", "This is a longer string");
-
- c_forpair (k, v, cmap_str, m)
- printf("%s: '%s' Len=%" c_ZI ", Is long: %s\n",
- cstr_str(_.k), cstr_str(_.v), cstr_size(_.v),
- cstr_is_long(_.v) ? "true" : "false");
-
- cmap_str_drop(&m);
-}