Lines Matching refs:lineptr
124 char line[512], *lineptr;
166 lineptr = line;
167 if (*lineptr == '/' || *lineptr == '#')
169 lineptr += strspn(lineptr, " \n\t");
170 len = strcspn(lineptr, " \n\t");
171 lineptr[len] = 0;
172 if (!strlen(lineptr))
174 if (lineptr[strlen(lineptr) - 1] == '-') { /* it's a prefix */
179 lineptr[strlen(lineptr) - 1] = 0;
180 prefixtable[prefixcount].prefixname = dupstr(lineptr);
182 if (!strcmp(prefixtable[i].prefixname, lineptr)) {
184 lineptr, linenum);
187 lineptr += len + 1;
188 lineptr += strspn(lineptr, " \n\t");
189 len = strcspn(lineptr, "\n\t");
195 lineptr[len] = 0;
196 prefixtable[prefixcount++].prefixval = dupstr(lineptr);
203 unittable[unitcount].uname = dupstr(lineptr);
205 if (!strcmp(unittable[i].uname, lineptr)) {
207 lineptr, linenum);
210 lineptr += len + 1;
211 lineptr += strspn(lineptr, " \n\t");
212 if (!strlen(lineptr)) {
217 len = strcspn(lineptr, "\n\t");
218 lineptr[len] = 0;
219 unittable[unitcount++].uval = dupstr(lineptr);