Basic working version without persistent storage
This commit is contained in:
parent
cae62ce7d2
commit
a2fcbb4224
8 changed files with 83 additions and 25 deletions
|
|
@ -38,7 +38,7 @@ void ternarytrie_free(TernaryTrie* trie);
|
|||
* @param string
|
||||
* @return true if the string is contained within this trie, false otherwise
|
||||
*/
|
||||
bool ternarytrie_search(TernaryTrie* trie, const char* string);
|
||||
char * ternarytrie_search(TernaryTrie* trie, const char* string);
|
||||
|
||||
/**
|
||||
* Add a string to this trie.
|
||||
|
|
@ -47,7 +47,7 @@ bool ternarytrie_search(TernaryTrie* trie, const char* string);
|
|||
* @param string
|
||||
* @return true if the trie was changed by this operation, false if it was already present
|
||||
*/
|
||||
bool ternarytrie_add(TernaryTrie* trie, const char* string);
|
||||
bool ternarytrie_add(TernaryTrie* trie, const char* string, const char *payload);
|
||||
|
||||
/**
|
||||
* Remove a string from this trie.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue