4 int getsubopt(char **opt, char *const *keys, char **val)
10 *opt = strchr(s, ',');
11 if (*opt) *(*opt)++ = 0;
12 else *opt = s + strlen(s);
14 for (i=0; keys[i]; i++) {
15 size_t l = strlen(keys[i]);
16 if (strncmp(keys[i], s, l)) continue;
19 else if (s[l]) continue;