aboutsummaryrefslogtreecommitdiff
path: root/trie.inc
diff options
context:
space:
mode:
Diffstat (limited to 'trie.inc')
-rw-r--r--trie.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/trie.inc b/trie.inc
index b1e0d0ed..532251b3 100644
--- a/trie.inc
+++ b/trie.inc
@@ -75,6 +75,9 @@ int TRIE_PUT(TYPE) ( TRIE(TYPE)* trie, char* key, TYPE* val ) {
return 0;
}
+/*
+ * TODO what happens when I give an invalid key?
+ */
TYPE* TRIE_GET(TYPE) ( TRIE(TYPE)* trie, char* key ) {
TRIE_NODE(TYPE)* n = trie->root->child;
char* subkey = key;