Home | History | Annotate | Download | only in lib

Lines Matching refs:optstring

229                     char **argv _GL_UNUSED, const char *optstring,
244 if (optstring[0] == '-')
247 ++optstring;
249 else if (optstring[0] == '+')
252 ++optstring;
289 return optstring;
294 given in OPTSTRING.
311 OPTSTRING is a string containing the legitimate option characters.
312 If an option character is seen that is not listed in OPTSTRING,
316 If a char in OPTSTRING is followed by a colon, that means it wants an arg,
322 If OPTSTRING starts with '-' or '+', it requests different methods of
350 _getopt_internal_r (int argc, char **argv, const char *optstring,
365 optstring = _getopt_initialize (argc, argv, optstring, d,
369 else if (optstring[0] == '-' || optstring[0] == '+')
370 optstring++;
371 if (optstring[0] == ':')
483 || !strchr (optstring, argv[d->optind][1])))))
714 return optstring[0] == ':' ? ':' : '?';
733 || strchr (optstring, *d->__nextchar) == NULL)
793 const char *temp = strchr (optstring, c);
887 if (optstring[0] == ':')
1041 return optstring[0] == ':' ? ':' : '?';
1115 if (optstring[0] == ':')
1132 _getopt_internal (int argc, char **argv, const char *optstring,
1141 result = _getopt_internal_r (argc, argv, optstring, longopts,
1161 getopt (int argc, char *const *argv, const char *optstring)
1163 return _getopt_internal (argc, (char **) argv, optstring,
1171 __posix_getopt (int argc, char *const *argv, const char *optstring)
1173 return _getopt_internal (argc, argv, optstring,