~ft/snippets

snippets/qp.h -rw-r--r-- 213 bytes
d70003dfSigrid Solveig Haflínudóttir calculate strlen in qpget if not set; add more asserts; set value type to void ptr for qpget 14 hours ago
                                                                                
1
2
3
4
5
6
typedef union Trie Trie;
#pragma incomplete Trie

int qpget(Trie *t, char *k, int len, char **pk, void **pv);
int qpnext(Trie *t, char **pk, int *plen, void **pv);
Trie *qpset(Trie *t, char *k, int len, void *v);