Home | History | Annotate | Download | only in utils

Lines Matching defs:optind

367 int optind = 1;
377 if (optind >= argc) {
382 if (argv[optind][0] != '-' || argv[optind][1] == '\0') {
388 if (os_strcmp(argv[optind], "--") == 0) {
390 optind++;
394 optopt = argv[optind][optchr];
397 if (argv[optind][++optchr] == '\0') {
399 optind++;
407 if (argv[optind][optchr + 1]) {
409 optarg = &argv[optind++][optchr + 1];
410 } else if (++optind >= argc) {
415 optarg = argv[optind++];
419 if (argv[optind][++optchr] == '\0') {
421 optind++;