Lines Matching refs:optind
31 int opterr = 1, optind = 1, optopt = 0; variable
41 optind = 1; in getopt_reset()
54 if (optind >= argc || argv[optind][0] != '-' || in getopt()
55 argv[optind] == NULL || argv[optind][1] == '\0') in getopt()
57 else if (strcmp(argv[optind], "--") == 0) { in getopt()
58 optind++; in getopt()
62 optopt = c = (unsigned char)argv[optind][_sp]; in getopt()
66 if (argv[optind][++_sp] == '\0') { in getopt()
67 optind++; in getopt()
74 if (argv[optind][_sp+1] != '\0') in getopt()
75 optarg = &argv[optind++][_sp+1]; in getopt()
76 else if (++optind >= argc) { in getopt()
85 optarg = argv[optind++]; in getopt()
88 if (argv[optind][++_sp] == '\0') { in getopt()
90 optind++; in getopt()