Lines Matching refs:ap_optind
14 int ap_optind = 1; variable
52 if (ap_optind >= argc) in ap_getopt()
54 if (!dash && (argv[ap_optind][0] != '-')) in ap_getopt()
56 if (!dash && (argv[ap_optind][0] == '-') && !argv[ap_optind][1]) in ap_getopt()
64 if ((argv[ap_optind][0] == '-') && (argv[ap_optind][1] == '-')) in ap_getopt()
67 ap_optind++; in ap_getopt()
72 assert((argv[ap_optind][0] == '-') && argv[ap_optind][1]); in ap_getopt()
79 if (argv[ap_optind][optchr] == ':') in ap_getopt()
82 ap_optind++; in ap_getopt()
83 return(ap_optiserr(argc, argv, ap_optind-1, optstr, optchr, OPTERRCOLON)); in ap_getopt()
85 if (!(cp = strchr(optstr, argv[ap_optind][optchr]))) in ap_getopt()
87 int errind = ap_optind; in ap_getopt()
90 if (!argv[ap_optind][optchr+1]) in ap_getopt()
93 ap_optind++; in ap_getopt()
104 if(!argv[ap_optind][2]) { in ap_getopt()
105 ap_optind++; in ap_getopt()
106 if (ap_optind == argc) in ap_getopt()
107 return(ap_optiserr(argc, argv, ap_optind-1, optstr, optchr, OPTERRARG)); in ap_getopt()
108 ap_optarg = argv[ap_optind++]; in ap_getopt()
112 ap_optarg = &argv[ap_optind][2]; in ap_getopt()
113 ap_optind++; in ap_getopt()
119 if (!argv[ap_optind][optchr+1]) in ap_getopt()
122 ap_optind++; in ap_getopt()
138 extern int ap_optind; in main()
170 for ( ; ap_optind < argc; ap_optind++) in main()
171 (void)printf("%s\n", argv[ap_optind]); in main()