Lines Matching defs:opts
16 * @opts: an array of &struct option entries controlling parser operations
23 * Returns opts->val if a matching entry in the 'opts' array is found,
26 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
43 for (; opts->name; opts++) {
44 if (!strcmp(opts->name, token)) {
46 if (opts->has_arg & OPT_NOPARAM) {
47 return opts->val;
53 if (opts->has_arg & OPT_INT) {
58 return opts->val;
64 if (opts->has_arg & OPT_STRING) {
65 return opts->val;