Lines Matching refs:argv
50 getopt(int argc, char *const *argv, const char *opts)
56 if (optind >= argc || argv[optind][0] != '-' ||
57 argv[optind] == NULL || argv[optind][1] == '\0')
59 else if (strcmp(argv[optind], "--") == NULL) {
64 optopt = c = (unsigned char)argv[optind][_sp];
67 warn("%s: illegal option -- %c\n", argv[0], c);
68 if (argv[optind][++_sp] == '\0') {
76 if (argv[optind][_sp+1] != '\0')
77 optarg = &argv[optind++][_sp+1];
81 " -- %c\n", argv[0], c);
87 optarg = argv[optind++];
90 if (argv[optind][++_sp] == '\0') {