Next: Parsing Program Options with Argp, Up: Parsing Program Arguments [Contents][Index]

### 26.2 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 the `getopt` function
- Example of Parsing Arguments with `getopt`
- Parsing Long Options with `getopt_long`
- Example of Parsing Long Options with `getopt_long`