Basic working version without persistent storage

This commit is contained in:
Jef Roosens 2022-11-15 21:12:08 +01:00
parent cae62ce7d2
commit a2fcbb4224
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 83 additions and 25 deletions

View file

@ -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.