Lines Matching defs:line
70 * Whitespace characters to delimit fields in a line.
939 * gataline attempts to get a line from the configuration file,
940 * upto LINESZ. A line in the file is a concatenation of lines if the
941 * continuation symbol '\' is used at the end of the line. Returns
942 * line on success, a NULL on EOF, and an empty string on lines > linesz.
945 gataline(FILE *fp, char *path, char *line, int linesz) {
946 register char *p = line;
953 if (fgets(p, linesz - (p-line), fp) == NULL) {
954 return (*line ? line : NULL); /* EOF */
957 len = strlen(line);
959 p = line;
962 p = &line[len - 1];
965 * Is input line too long?
972 * read the rest of the line to discard.
980 while (p >= line && isspace(*(uchar_t *)p))
982 if (p < line) { /* empty line */
983 p = line;
995 * '#' is the first character in the line.
997 p = line;
1000 if (p == line || isspace(*(p-1))) {
1013 * discard rest of line and return an empty string.
1015 * we are done with this line.
1019 if (*p == '\n') /* end of the long line */
1028 "%s: line too long - ignored (max %d chars)"),
1032 "%s: line too long - ignored (max %d chars)\n"),
1035 *line = '\0';
1038 return (line);