templ
try(char command[], size_t commandl, char temp[], size_t templ, int ma, int ta,
(void) strlcat(temp, st, templ);
new = score(temp, templ, f, t, rakeme);
try(command, commandl, temp, templ, ma-n, ta, af, vma-n,
(void) strlcat(temp, "r", templ);
new = score(temp, templ, f, t, rakeme);
try(command, commandl, temp, templ, ma-1, ta-1, af, min(ma-1, maxmove(f, (dir == 8 ? 1 : dir+1), 0)), (dir == 8 ? 1 : dir+1),f,t,high,rakeme);
(void) strlcat(temp, "l", templ);
new = score(temp, templ, f, t, rakeme);
try(command, commandl, temp, templ, ma-1, ta-1, af, (min(ma-1,maxmove(f, (dir-1 ? dir-1 : 8), 0))), (dir-1 ? dir -1 : 8), f, t, high, rakeme);
for(; o != NULL && o->templ; o++) {
sep = match_opt(o->templ, opt);
if (o->templ[sep] == '=')
else if (o->templ[sep] == ' ') {
} else if (strchr(o->templ, '%') != NULL) {
} else if (strchr(o->templ, '%') == NULL) {
} else if (strstr(o->templ, "%s") != NULL) {
if (sscanf(opt, o->templ, data + o->off) != 1) {
"option %s\n", val, o->templ);
while (this_opt->templ) {
if (match_opt(this_opt->templ, opt))
match_opt(const char *templ, const char *opt)
len = strlen(templ);
sep = strcspn(templ, "=");
sep = strcspn(templ, " ");
if (sep < len && (templ[sep + 1] == '\0' || templ[sep + 1] == '%')) {
if (strncmp(opt, templ, sep) == 0)
if (strcmp(opt, templ) == 0)
const char *templ;
char *templ;
uaudio_mkname(struct uaudio_softc *sc, char *templ, char *res)
sep = strchr(templ, '_') != NULL ? "_" : "";
n->templ = templ;
if (strcmp(n->templ, templ) == 0)
snprintf(res, UAUDIO_NAMEMAX, "%s", templ);
snprintf(res, UAUDIO_NAMEMAX, "%s%s%u", templ, sep, n->unit);
struct templ specialsinit[] = {
struct templ *p;
struct templ *specials2;
struct templ *specials = specialsinit;
struct ck_attribute *templ,
struct ck_attribute *templ, unsigned long count,
struct ck_attribute *templ,
struct ck_attribute *templ,
struct ck_attribute *templ,
struct ck_attribute *templ,
struct ck_attribute *templ,
struct ck_attribute *templ,