gensearch is a python script that generates C functions that match tokens from a defined set.
For more information, see this blog post
current version
Copyright © 1996-2008 Dustin Sallings of SPY Internetworking