I am implementing Patricia tries for IP prefix lookup, I could get the
code working for complete key match, but facing problems with prefix search, when there
are keys whic
Take a look at Net-Patricia. This is an implementation of a Patricia trie to look up IP addresses. The interface is perl, but the underlying code is in C. Here is a link, but many CPAN archives should have it: