2019-02-03 06:34:20 +00:00
|
|
|
#ifndef CSTOOL_GETOPT_H
|
|
|
|
#define CSTOOL_GETOPT_H
|
2017-07-04 07:55:46 +00:00
|
|
|
|
|
|
|
// global
|
2019-02-03 06:34:20 +00:00
|
|
|
extern int opterr, /* if error message should be printed */
|
|
|
|
optind, /* index into parent argv vector */
|
2017-07-04 07:55:46 +00:00
|
|
|
optopt, /* character checked for validity */
|
|
|
|
optreset; /* reset getopt */
|
|
|
|
|
2019-02-03 06:34:20 +00:00
|
|
|
extern const char *optarg; /* argument associated with option */
|
2017-07-04 07:55:46 +00:00
|
|
|
|
2019-02-03 06:34:20 +00:00
|
|
|
int getopt (int nargc, char *const nargv[], const char *ostr);
|
2017-07-04 07:55:46 +00:00
|
|
|
|
2019-02-03 06:34:20 +00:00
|
|
|
#endif
|