89# if defined __STDC__ && __STDC__
103# define no_argument 0
104# define required_argument 1
105# define optional_argument 2
133#if defined __STDC__ && __STDC__
134# ifdef __GNU_LIBRARY__
138extern int getopt (
int __argc,
char *
const *__argv,
const char *__shortopts);
139# elif defined WIN32 || defined DJGPP
140extern int getopt (
int,
char *
const *,
const char *);
145# ifndef __need_getopt
146extern int getopt_long (
int __argc,
char *
const *__argv,
const char *__shortopts,
147 const struct option *__longopts,
int *__longind);
149 const char *__shortopts,
150 const struct option *__longopts,
int *__longind);
154 const char *__shortopts,
155 const struct option *__longopts,
int *__longind,
158#elif (defined(_MSC_VER) && _MSC_VER) || \
159 (defined(__WATCOMC__) && __WATCOMC__)
161extern int getopt (
int,
char **,
const char *);
163# ifndef __need_getopt
165 const struct option *,
int *);
168 const struct option *,
int *);
173 const struct option *,
int *,
178# ifndef __need_getopt
int optopt
Definition getopt_windows.cpp:41
int optind
Definition getopt_windows.cpp:40
char * optarg
Definition getopt_windows.cpp:43
int opterr
Definition getopt_windows.cpp:39
int val
Definition mygetopt.h:98
int has_arg
Definition mygetopt.h:96
char * name
Definition mygetopt.h:92
int * flag
Definition mygetopt.h:97