Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Raspberry Pi benchmarked against Beagleboard, low price is long term

20 popular Ubuntu Linux apps you may want to try

A Selection of the Very Best Open Source Tutorials and Tools

Android Ice Cream Sandwich ported to x86 tablets, netbooks and notebooks

SECURITY: Google Chrome 17 Improves Security

How to read a CSV file in Perl?

Red Hat Brings Gluster to Amazon Cloud

New Linux kernel fixes power-saving issues

Using Wii remote with Android Device- Taking Gaming to the Next Level

Commercial Support now available for the open-source NGINX Web server



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:Use gperf for Efficient C/C++ Command Line Processing
Use gperf for Efficient C/C++ Command Line Processing
Aug 1, 2007, 04 :00 UTC (4 Talkback[s]) (8430 reads)

(Other stories by Arpan Sen and Rahul Kumar Kardam)

[ Thanks to An Anonymous Reader for this link. ]

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

"Command-line processing is historically one of the most ignored areas in software development. Just about any relatively complicated software has dozens of available command-line options. In fact, it's not uncommon to find hundreds of lines of if-else statements coded to process user input, and maintenance of such legacy code becomes a time-consuming affair even for seasoned programmers. In such circumstances, most C developers commonly go for a rather long (and often nested) if-else statement with ANSI C library functions such as strcmp, strcasecmp, and strtok thrown in for good measure..."

Complete Story

Related Stories:
Andrew Morton: Linux 2.6.14-mm2(Nov 11, 2005)
Release Digest: GNOME, November 21, 2004(Nov 22, 2004)
GNOME Summary: March 30-April 19, 2003(Apr 23, 2003)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
Since commmand line processing accounts  ...   Saw this on /. and wondered...   
Jeff Cobb
Aug 1, 2007, 14:30:22
 
> Since commmand line processing account ...   Re: Saw this on /. and wondered...   
Phil Mesnier
Aug 1, 2007, 14:57:19
 
Got it. Yes, that is one way I simply do ...   Re: Re: Saw this on /. and wondered...   
Jeff Cobb
Aug 1, 2007, 20:53:05
 
The impression I got (skimmed article) i ...   Re: Saw this on /. and wondered...   
Jose
Aug 1, 2007, 23:05:27
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP