Use gperf for efficient C/C++ command line processing

GNU perfect (gperf) hash function generator makes short work of complex input strings

From the developerWorks archives

Arpan Sen and Rahul Kumar Kardam

Date archived: April 18, 2019 | First published: July 25, 2007

The GNU tool gperf is a "perfect" hash function that, for a given set of user-provided strings, generates C/C++ code for a hash table, a hash function, and a lookup function. Learn how to use gperf for effective command-line processing in your C/C++ code.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=242695
ArticleTitle=Use gperf for efficient C/C++ command line processing
publish-date=07252007