示例#1
0
int _getopt_long_only_r_w(int argc, wchar_t *const *argv,
                          const wchar_t *options,
                          const struct option_w *long_options, int *opt_index,
                          struct _getopt_data_w *d) {
  return _getopt_internal_r_w(argc, argv, options, long_options, opt_index, 1,
                              d, 0);
}
示例#2
0
int _getopt_internal_w ( int argc, wchar_t *const *argv, const wchar_t *optstring, const struct option_w *longopts, int *longind, int long_only, int posixly_correct )
{
	int result;
	getopt_data_w.optind = optind;
	getopt_data_w.opterr = opterr;
	result = _getopt_internal_r_w ( argc, argv, optstring, longopts, longind, long_only, &getopt_data_w, posixly_correct );
	optind = getopt_data_w.optind;
	optarg_w = getopt_data_w.optarg;
	optopt = getopt_data_w.optopt;
	return result;
}