Home | History | Annotate | Download | only in units

Lines Matching defs:lineptr

138 	char line[80], *lineptr;
188 lineptr = line;
189 if (*lineptr == '/')
191 lineptr += strspn(lineptr, " \n\t");
192 len = strcspn(lineptr, " \n\t");
193 lineptr[len] = 0;
194 if (!strlen(lineptr))
196 if (lineptr[strlen(lineptr) - 1] == '-') { /* it's a prefix */
203 lineptr[strlen(lineptr) - 1] = 0;
206 lineptr)) {
214 lineptr, linenum);
217 prefixtable[prefixcount].prefixname = dupstr(lineptr);
218 lineptr += len + 1;
219 if (!strlen(lineptr)) {
223 lineptr += strspn(lineptr, " \n\t");
224 len = strcspn(lineptr, "\n\t");
225 lineptr[len] = 0;
226 prefixtable[prefixcount++].prefixval = dupstr(lineptr);
235 if (!strcmp(unittable[i].uname, lineptr)) {
243 lineptr, linenum);
246 unittable[unitcount].uname = dupstr(lineptr);
247 lineptr += len + 1;
248 lineptr += strspn(lineptr, " \n\t");
249 if (!strlen(lineptr)) {
253 len = strcspn(lineptr, "\n\t");
254 lineptr[len] = 0;
255 unittable[unitcount++].uval = dupstr(lineptr);