Lines Matching +defs:val +defs:buf
48 char buf[2048];
52 char *val;
59 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
61 p = strchr(buf, '\n');
65 if (buf[0] != 'O' || buf[1] != ' ')
68 id = &buf[2];
69 val = strchr(id, '=');
70 if (val == NULL)
71 val = idend = id + strlen(id);
74 idend = val;
75 ++val;
76 while (*val == ' ')
77 ++val;
87 optv[i].opt_val = sm_strdup_x(val);