summaryrefslogtreecommitdiff
path: root/comp/cw/code/ads/dict/dicttest.c
diff options
context:
space:
mode:
Diffstat (limited to 'comp/cw/code/ads/dict/dicttest.c')
-rw-r--r--comp/cw/code/ads/dict/dicttest.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/cw/code/ads/dict/dicttest.c b/comp/cw/code/ads/dict/dicttest.c
new file mode 100644
index 0000000..4a20870
--- /dev/null
+++ b/comp/cw/code/ads/dict/dicttest.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+#include "dict.h"
+
+int main(){
+ dict_t *dict = dictalloc();
+ dictset(dict, 1, "hello");
+ printf("%d:%s\n", dict->id, (char *)dict->data);
+ dictfree(dict);
+}