Home | History | Annotate | Download | only in lib

Lines Matching refs:optstring

396 _getopt_initialize (argc, argv, optstring)
399 const char *optstring;
413 if (optstring[0] == '-')
416 ++optstring;
418 else if (optstring[0] == '+')
421 ++optstring;
458 return optstring;
463 given in OPTSTRING.
480 OPTSTRING is a string containing the legitimate option characters.
481 If an option character is seen that is not listed in OPTSTRING,
485 If a char in OPTSTRING is followed by a colon, that means it wants an arg,
491 If OPTSTRING starts with `-' or `+', it requests different methods of
519 _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
522 const char *optstring;
533 optstring = _getopt_initialize (argc, argv, optstring);
643 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
735 return optstring[0] == ':' ? ':' : '?';
754 || my_index (optstring, *nextchar) == NULL)
778 char *temp = my_index (optstring, c);
827 if (optstring[0] == ':')
907 return optstring[0] == ':' ? ':' : '?';
957 if (optstring[0] == ':')
974 getopt (argc, argv, optstring)
977 const char *optstring;
979 return _getopt_internal (argc, argv, optstring,