Lines Matching defs:line
256 mesg(MEXIT, "cannot alloc %u for line args\n", size);
307 * Match leading keyword from a conf line and
329 mesg(MDEBUG, "line %d, ('%c' - '%c') = %d\n",
330 lineno, *cip->keyword, *line, chr_diff);
347 * Find the end of a [possibly continued] conf line
348 * and record the real/lf-delimited line count at *lcnt.
351 find_line_end(char *line, int *lcnt)
356 next = line;
359 if (lf == line || (*(lf - 1) != '\\') || *(lf + 1) == '\0')
368 * Parse the named conf file and for each conf line
374 char *file_buf, *cline, *line, *lend;
394 line = file_buf;
395 while ((lend = find_line_end(line, &linc)) != NULL) {
397 * Each line should start with valid data
400 while (line < lend) {
401 if (*line != ' ' && *line != '\t')
403 line++;
407 * Copy line into allocated space and null-terminate
408 * without the trailing line-feed.
410 if ((llen = (lend - line)) != 0) {
413 "for line copy\n", llen);
414 (void) memcpy(cline, line, llen);
431 else if (*line == '#')
442 (*action)(line, llen + 1, cip);
456 line = lend + 1;