getopt.h File Reference
Go to the source code of this file.
Classes |
struct | option |
Defines |
#define | no_argument 0 |
#define | optional_argument 2 |
#define | required_argument 1 |
Functions |
int | _getopt_internal (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind, int long_only) |
int | getopt (int argc, char *const *argv, const char *shortopts) |
int | getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind) |
int | getopt_long_only (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind) |
Variables |
const char * | exec_name |
char * | optarg |
int | opterr |
int | optind |
int | optopt |
Define Documentation
#define optional_argument 2 |
#define required_argument 1 |
Function Documentation
int _getopt_internal |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
shortopts, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind, |
|
|
int |
long_only | |
|
) |
| | |
int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
shortopts | |
|
) |
| | |
int getopt_long |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
shortopts, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind | |
|
) |
| | |
int getopt_long_only |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
shortopts, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind | |
|
) |
| | |
Variable Documentation