27 #ifndef INCLUDED_GETOPT_PORT_H 28 #define INCLUDED_GETOPT_PORT_H 30 #if defined(__cplusplus) 34 extern const int no_argument;
35 extern const int required_argument;
36 extern const int optional_argument;
39 extern int optind, opterr, optopt;
48 int getopt(
int argc,
char*
const argv[],
const char* optstring);
50 int getopt_long(
int argc,
char*
const argv[],
51 const char* optstring,
const struct option* longopts,
int* longindex);
53 #if defined(__cplusplus) 57 #endif // INCLUDED_GETOPT_PORT_H