Lines Matching refs:argv
65 (void) snprintf(errbuf, sizeof (errbuf), s, argv[0], \
66 (i ? argv[i]+2 : cbuf)); \
179 getopt(int argc, char *const *argv, const char *optstring)
191 * argv[optind] is a null pointer
192 * *argv[optind] is not the character '-'
193 * argv[optind] points to the string "-"
195 * argv[optind] points to the string "--"
199 if (optind >= argc || argv[optind][0] != '-' ||
200 argv[optind] == NULL || argv[optind][1] == '\0')
202 else if (strcmp(argv[optind], "--") == NULL) {
225 * be identified by argv[optind-1].
227 optopt = c = (unsigned char)argv[optind][_sp];
231 ((cp = parselong(optstring, argv[optind]+2, &longoptarg)) != NULL) :
239 if (argv[optind][++_sp] == '\0' || longopt) {
253 * by an element of argv, then optarg contains the next element
254 * of argv, and optind is incremented by 2. If the resulting
260 * character in that element of argv, and optind is incremented
273 if (!longopt && argv[optind][_sp+1] != '\0') {
274 optarg = &argv[optind++][_sp+1];
289 optarg = argv[optind++];
302 if (longopt || argv[optind][++_sp] == '\0') {