14 #define BAD_OPTION '\0' 122 #define no_argument 0 123 #define required_argument 1 124 #define optional_argument 2 128 const struct option *longopts,
int *longind);
130 const WCHAR *shortopts,
131 const struct option *longopts,
int *longind);
135 const WCHAR *shortopts,
136 const struct option *longopts,
int *longind,
int _getopt_internal(optarg_ctx *o, int argc, WCHAR *const *argv, const WCHAR *shortopts, const struct option *longopts, int *longind, int long_only)
int getopt_long_only(optarg_ctx *o, int argc, WCHAR *const *argv, const WCHAR *shortopts, const struct option *longopts, int *longind)
int getopt_long(optarg_ctx *o, int argc, WCHAR *const *argv, const WCHAR *shortopts, const struct option *longopts, int *longind)
struct _optarg_ctx * P_optarg_ctx
void getopt_init(optarg_ctx *o)
struct _optarg_ctx optarg_ctx
int getopt(int nargc, char *const *nargv, const char *ostr)