Lines Matching refs:shortopts
146 getopt_internal (int argc, char **argv, char *shortopts,
162 if (argc == 0 || argv == NULL || (shortopts == NULL && longopts == NULL))
176 if (shortopts != NULL && (*shortopts == '-' || *shortopts == '+'))
178 ordering = (*shortopts == '-') ? RETURN_IN_ORDER : REQUIRE_ORDER;
179 shortopts++;
283 if (longopt_match < 0 && shortopts != NULL)
285 cp = strchr (shortopts, argv[optind][optwhere]);
288 /* couldn't find option in shortopts */
397 getopt_long (int argc, char **argv, const char *shortopts,
400 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)longopts, longind, 0);
404 getopt_long_only (int argc, char **argv, const char *shortopts,
407 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)longopts, longind, 1);