Lines Matching refs:templ
74 match_opt(const char *templ, const char *opt) in match_opt() argument
78 len = strlen(templ); in match_opt()
79 sep = strcspn(templ, "="); in match_opt()
82 sep = strcspn(templ, " "); in match_opt()
85 if (sep < len && (templ[sep + 1] == '\0' || templ[sep + 1] == '%')) { in match_opt()
86 if (strncmp(opt, templ, sep) == 0) in match_opt()
92 if (strcmp(opt, templ) == 0) in match_opt()
198 for(; o != NULL && o->templ; o++) { in parse_opt()
199 sep = match_opt(o->templ, opt); in parse_opt()
207 if (o->templ[sep] == '=') in parse_opt()
209 else if (o->templ[sep] == ' ') { in parse_opt()
213 } else if (strchr(o->templ, '%') != NULL) { in parse_opt()
229 } else if (strchr(o->templ, '%') == NULL) { in parse_opt()
232 } else if (strstr(o->templ, "%s") != NULL) { in parse_opt()
237 if (sscanf(opt, o->templ, data + o->off) != 1) { in parse_opt()
239 "option %s\n", val, o->templ); in parse_opt()
420 while (this_opt->templ) { in fuse_opt_match()
421 if (match_opt(this_opt->templ, opt)) in fuse_opt_match()