Lines Matching refs:optstring
406 const char *optstring)
420 if (optstring[0] == '-')
423 ++optstring;
425 else if (optstring[0] == '+')
428 ++optstring;
465 return optstring;
470 given in OPTSTRING.
487 OPTSTRING is a string containing the legitimate option characters.
488 If an option character is seen that is not listed in OPTSTRING,
492 If a char in OPTSTRING is followed by a colon, that means it wants an arg,
498 If OPTSTRING starts with `-' or `+', it requests different methods of
526 _getopt_internal (int argc, char *const *argv, const char *optstring,
536 optstring = _getopt_initialize (argc, argv, optstring);
646 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
739 return optstring[0] == ':' ? ':' : '?';
758 || my_index (optstring, *nextchar) == NULL)
782 char *temp = my_index (optstring, c);
831 if (optstring[0] == ':')
911 return optstring[0] == ':' ? ':' : '?';
961 if (optstring[0] == ':')
978 getopt (int argc, char *const *argv, const char *optstring)
980 return _getopt_internal (argc, argv, optstring,