Lines Matching refs:optind
33 int opterr = 1, optind = 1, optopt = 0; variable
43 optind = 1; in getopt_reset()
56 if (optind >= argc || argv[optind][0] != '-' || in getopt()
57 argv[optind] == NULL || argv[optind][1] == '\0') in getopt()
59 else if (strcmp(argv[optind], "--") == NULL) { in getopt()
60 optind++; in getopt()
64 optopt = c = (unsigned char)argv[optind][_sp]; in getopt()
68 if (argv[optind][++_sp] == '\0') { in getopt()
69 optind++; in getopt()
76 if (argv[optind][_sp+1] != '\0') in getopt()
77 optarg = &argv[optind++][_sp+1]; in getopt()
78 else if (++optind >= argc) { in getopt()
87 optarg = argv[optind++]; in getopt()
90 if (argv[optind][++_sp] == '\0') { in getopt()
92 optind++; in getopt()