Lines Matching defs:optind
70 int optind = 1; /* index into parent argv vector */
181 optind++;
245 optarg = nargv[optind++];
265 --optind;
270 --optind;
316 * XXX Some GNU programs (like cvs) set optind to 0 instead of
319 if (optind == 0)
320 optind = optreset = 1;
328 if (optind >= nargc) { /* end of argument vector */
333 optind, nargv);
334 optind -= nonopt_end - nonopt_start;
338 * If we skipped non-options, set optind
341 optind = nonopt_start;
346 if (*(place = nargv[optind]) != '-' ||
354 optarg = nargv[optind++];
366 nonopt_start = optind;
369 optind, nargv);
370 nonopt_start = optind -
374 optind++;
379 nonopt_end = optind;
385 optind++;
393 optind, nargv);
394 optind -= nonopt_end - nonopt_start;
407 if (long_options != NULL && place != nargv[optind] &&
434 ++optind;
444 else if (++optind >= nargc) { /* no arg */
451 place = nargv[optind];
459 ++optind;
466 if (++optind >= nargc) { /* no arg */
473 optarg = nargv[optind];
480 if (optind + 1 < nargc && *nargv[optind + 1] != '-')
481 optarg = nargv[++optind];
484 ++optind;