12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef INCLUDED_GETOPT_PORT_H
- #define INCLUDED_GETOPT_PORT_H
- #if defined(__cplusplus)
- extern "C" {
- #endif
- extern const int no_argument;
- extern const int required_argument;
- extern const int optional_argument;
- extern char* optarg;
- extern int optind, opterr, optopt;
- struct option {
- const char* name;
- int has_arg;
- int* flag;
- int val;
- };
- int getopt(int argc, char* const argv[], const char* optstring);
- int getopt_long(int argc, char* const argv[],
- const char* optstring, const struct option* longopts, int* longindex);
- #if defined(__cplusplus)
- }
- #endif
- #endif
|