summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-17 13:40:11 +0100
committerTyge Løvset <[email protected]>2021-01-17 13:40:11 +0100
commite13d9b07244beef4ae5bba739d90d2bcd2a5d9ac (patch)
treea6dcd779769c5d0f211a87ccf3f738587a71a629 /examples
parent19aa4243bbf59cecb348541495b9e7abe04777ef (diff)
downloadSTC-modified-e13d9b07244beef4ae5bba739d90d2bcd2a5d9ac.tar.gz
STC-modified-e13d9b07244beef4ae5bba739d90d2bcd2a5d9ac.zip
Cleanup csmap example.
Diffstat (limited to 'examples')
-rw-r--r--examples/csmap_ex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/csmap_ex.c b/examples/csmap_ex.c
index 3d66ec2a..cd623b06 100644
--- a/examples/csmap_ex.c
+++ b/examples/csmap_ex.c
@@ -3,9 +3,6 @@
#include <stc/crand.h>
#include <stdio.h>
-//using_csset(i, int);
-//using_csmap(s, cstr, cstr, cstr_del, cstr_clone, cstr_compare_ref, cstr_del, cstr_clone);
-
using_csmap(i, int, int);
using_csset_str();
@@ -50,6 +47,7 @@ int main(int argc, char **argv)
});
c_foreach (i, csset_str, names)
printf("name: %s\n", i.ref->str);
-
+
+ csset_str_del(&names);
return 0;
}