Lines Matching defs:argv
27 int getopt(int argc, char * const argv[], const char *optstring)
40 if (optind >= argc || !argv[optind])
43 if (argv[optind][0] != '-') {
45 optarg = argv[optind++];
51 if (!argv[optind][1])
54 if (argv[optind][1] == '-' && !argv[optind][2])
58 if ((k = mbtowc(&c, argv[optind]+optpos, MB_LEN_MAX)) < 0) {
62 optchar = argv[optind]+optpos;
66 if (!argv[optind][optpos]) {
83 __getopt_msg(argv[0], ": unrecognized option: ", optchar, k);
90 if (opterr) __getopt_msg(argv[0],
96 optarg = argv[optind++] + optpos;