Lines Matching refs:argv
18 ap_php_optiserr(int argc, char * const *argv, int oint, const char *optstr, in ap_php_optiserr() argument
30 fprintf(stderr, "option not found %c\n", argv[oint][optchr]); in ap_php_optiserr()
33 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]); in ap_php_optiserr()
43 int ap_php_getopt(int argc, char* const *argv, const char *optstr) in ap_php_getopt() argument
52 if (!dash && (argv[ap_php_optind][0] != '-')) in ap_php_getopt()
54 if (!dash && (argv[ap_php_optind][0] == '-') && !argv[ap_php_optind][1]) in ap_php_getopt()
62 if ((argv[ap_php_optind][0] == '-') && (argv[ap_php_optind][1] == '-')) in ap_php_getopt()
70 assert((argv[ap_php_optind][0] == '-') && argv[ap_php_optind][1]); in ap_php_getopt()
77 if (argv[ap_php_optind][optchr] == ':') in ap_php_getopt()
81 return(ap_php_optiserr(argc, argv, ap_php_optind-1, optstr, optchr, OPTERRCOLON)); in ap_php_getopt()
83 if (!(cp = strchr(optstr, argv[ap_php_optind][optchr]))) in ap_php_getopt()
88 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt()
95 return(ap_php_optiserr(argc, argv, errind, optstr, errchr, OPTERRNF)); in ap_php_getopt()
102 if(!argv[ap_php_optind][2]) { in ap_php_getopt()
105 return(ap_php_optiserr(argc, argv, ap_php_optind-1, optstr, optchr, OPTERRARG)); in ap_php_getopt()
106 ap_php_optarg = argv[ap_php_optind++]; in ap_php_getopt()
110 ap_php_optarg = &argv[ap_php_optind][2]; in ap_php_getopt()
117 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt()
132 main (int argc, char **argv) in main() argument
142 while ((c = ap_php_getopt(argc, argv, "abo:")) != EOF) in main()
169 (void)printf("%s\n", argv[ap_php_optind]); in main()