Go to the source code of this file.
Data Structures | |
| struct | option |
Defines | |
| #define | no_argument 0 |
| #define | required_argument 1 |
| #define | optional_argument 2 |
Functions | |
| int | getopt (int, char *const *, const char *) |
| int | getopt_long (int, char **, char *, struct option *, int *) |
Variables | |
| int | opterr |
| int | optind |
| int | optopt |
| int | optreset |
| char * | optarg |
| #define no_argument 0 |
| #define optional_argument 2 |
| #define required_argument 1 |
| int getopt | ( | int | , | |
| char *const * | , | |||
| const char * | ||||
| ) |
argument associated with option
| int getopt_long | ( | int | , | |
| char ** | , | |||
| char * | , | |||
| struct option * | , | |||
| int * | ||||
| ) |
| char* optarg |
For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here.
| int opterr |
Callers store zero here to inhibit the error message for unrecognized options.
| int optind |
XXX 1003.2 says this must be 1 before any call.
| int optopt |
Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation.
| int optreset |
character checked for validity
1.5.1