1 2 3 4 5 6 7 8 9 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); }