Go to the documentation of this file.
33 #if !defined __GNU_LIBRARY__
96 # if (defined __STDC__ && __STDC__) || defined __cplusplus
110 # define no_argument 0
111 # define required_argument 1
112 # define optional_argument 2
140 #if (defined __STDC__ && __STDC__) || defined __cplusplus
141 # ifdef __GNU_LIBRARY__
145 extern int getopt (
int ___argc,
char *
const *___argv,
const char *__shortopts);
150 # ifndef __need_getopt
151 extern int getopt_long (
int ___argc,
char *
const *___argv,
152 const char *__shortopts,
153 const struct option *__longopts,
int *__longind);
155 const char *__shortopts,
156 const struct option *__longopts,
int *__longind);
160 const char *__shortopts,
161 const struct option *__longopts,
int *__longind,
166 # ifndef __need_getopt
int val
Definition: getopt.h:105
char * name
Definition: getopt.h:99
int optopt
Definition: getopt.c:157
char * optarg
Definition: getopt.c:116
int optind
Definition: getopt.c:131
int * flag
Definition: getopt.h:104
int opterr
Definition: getopt.c:151
int has_arg
Definition: getopt.h:103