Home | History | Annotate | Download | only in getopt

Lines Matching refs:place

84 static char *place = EMSG; /* option letter processing */
166 current_argv = place;
311 if (optreset || !*place) { /* update scanning pointer */
314 place = EMSG;
331 if (*(place = nargv[optind]) != '-' ||
332 (place[1] == '\0' && strchr(options, '-') == NULL)) {
333 place = EMSG; /* found non-option */
369 if (place[1] != '\0' && *++place == '-' && place[1] == '\0') {
371 place = EMSG;
392 if (long_options != NULL && place != nargv[optind] &&
393 (*place == '-' || (flags & FLAG_LONGONLY))) {
395 if (*place == '-')
396 place++; /* --foo long option */
397 else if (*place != ':' && strchr(options, *place) != NULL)
403 place = EMSG;
408 if ((optchar = (int)*place++) == (int)':' ||
409 (optchar == (int)'-' && *place != '\0') ||
416 if (optchar == (int)'-' && *place == '\0')
418 if (!*place)
427 if (*place) /* no space */
430 place = EMSG;
436 place = nargv[optind];
439 place = EMSG;
443 if (!*place)
447 if (*place) /* no white space */
448 optarg = place;
451 place = EMSG;
459 place = EMSG;