| 1 | #ifndef CSTOOL_GETOPT_H |
| 2 | #define CSTOOL_GETOPT_H |
| 3 | |
| 4 | // global |
| 5 | extern int opterr, /* if error message should be printed */ |
| 6 | optind, /* index into parent argv vector */ |
| 7 | optopt, /* character checked for validity */ |
| 8 | optreset; /* reset getopt */ |
| 9 | |
| 10 | extern const char *optarg; /* argument associated with option */ |
| 11 | |
| 12 | int getopt (int nargc, char *const nargv[], const char *ostr); |
| 13 | |
| 14 | #endif |