13.2. Argp

C's method of getting command line arguments is pretty simple but when your program has a lot of options it can get complex. To solve this, Glibc provides a series of functions to perform command tasks for you. The "argp_*" functions perform much of the work for you and they do it in a standard way which makes you program more familiar to users. Here's an short program using argp:

Example 13-2. simple_argp.c

/* put a tiny argp program here */
     
When you run this program you will see...