Searched refs:optind (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/main/
H A Dgetopt.c58 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start) /* {{{ */ argument
73 if (*optind >= argc) {
77 if ((argv[*optind][0] != '-')) {
80 if (!argv[*optind][1])
90 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) {
92 int arg_end = (int)strlen(argv[*optind])-1;
95 if (argv[*optind][2] == '\0') {
96 (*optind)++;
103 if ((pos = php_memnstr(&argv[*optind][arg_star
[all...]
H A Dphp_getopt.h28 As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg
31 #undef optind macro
45 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start);

Completed in 3 milliseconds