Lines Matching refs:optind
22 int optind = 1, opterr = 1, optopt; variable
32 if (!optind) { in getopt()
34 optind = 1; in getopt()
37 if (optind >= argc || !argv[optind]) in getopt()
40 if (argv[optind][0] != '-') { in getopt()
42 optarg = argv[optind++]; in getopt()
48 if (!argv[optind][1]) in getopt()
51 if (argv[optind][1] == '-' && !argv[optind][2]) in getopt()
52 return optind++, -1; in getopt()
56 c = argv[optind][__optpos]; in getopt()
57 optchar = argv[optind] + __optpos; in getopt()
60 if (!argv[optind][__optpos]) { in getopt()
61 optind++; in getopt()
83 optarg = argv[optind++]; in getopt()
88 if (optind > argc) { in getopt()