Lines Matching refs:opts
18 * @opts: an array of &struct option entries controlling parser operations
26 * Returns opts->val if a matching entry in the 'opts' array is found,
30 const struct krping_option *opts, char **optopt,
47 for (; opts->name; opts++) {
48 if (!strcmp(opts->name, token)) {
50 if (opts->has_arg & OPT_NOPARAM) {
51 return opts->val;
57 if (opts->has_arg & OPT_INT) {
62 return opts->val;
68 if (opts->has_arg & OPT_STRING) {
69 return opts->val;