Home | History | Annotate | Download | only in utils

Lines Matching defs:optind

248 int optind = 1;
258 if (optind >= argc) {
263 if (argv[optind][0] != '-' || argv[optind][1] == '\0') {
269 if (os_strcmp(argv[optind], "--") == 0) {
271 optind++;
275 optopt = argv[optind][optchr];
278 if (argv[optind][++optchr] == '\0') {
280 optind++;
288 if (argv[optind][optchr + 1]) {
290 optarg = &argv[optind++][optchr + 1];
291 } else if (++optind >= argc) {
296 optarg = argv[optind++];
300 if (argv[optind][++optchr] == '\0') {
302 optind++;