GNU Info

Info Node: (libc.info)Getopt

(libc.info)Getopt


Next: Argp Up: Parsing Program Arguments
Enter node , (file) or (file)node

Parsing program options using `getopt'
======================================

   The `getopt' and `getopt_long' functions automate some of the chore
involved in parsing typical unix command line options.

Using Getopt
Using the `getopt' function.
Example of Getopt
An example of parsing options with `getopt'.
Getopt Long Options
GNU suggests utilities accept long-named
options; here is one way to do.
Getopt Long Option Example
An example of using `getopt_long'.

automatically generated by info2www version 1.2.2.9