Lines Matching refs:optstr
491 __mf_set_options (const char *optstr)
496 rc = __mfu_set_options (optstr);
507 __mfu_set_options (const char *optstr)
513 const char *saved_optstr = optstr;
515 /* XXX: bounds-check for optstr! */
517 while (*optstr)
519 switch (*optstr) {
523 optstr++;
527 if (*optstr+1)
530 optstr++;
532 if (*optstr == '?' ||
533 strncmp (optstr, "help", 4) == 0)
539 if (strncmp (optstr, "no-", 3) == 0)
542 optstr = & optstr[3];
547 if (strncmp (optstr, opts->name, strlen (opts->name)) == 0)
549 optstr += strlen (opts->name);
560 if (! negate && (*optstr == '=' && *(optstr+1)))
562 optstr++;
563 tmp = strtol (optstr, &nxt, 10);
564 if ((optstr != nxt) && (tmp != LONG_MAX))
566 optstr = nxt;
582 optstr);
583 optstr += strlen (optstr);