Lines Matching defs:line
72 char line[INPUTSIZ];
80 int lineno = 0; /* Input line counter */
116 (fgetsp = fgets(line, sizeof (line), fp)) != NULL) {
120 if ((commentp = strchr(line, '#')) != NULL) {
121 if ((line[strlen(line) - 1] != '\n') &&
122 (strlen(line) >= (sizeof (line) - 1))) {
124 * Discard the remainder of the line
126 * continue to parse the line. Use
127 * adr[] rather then line[] to
128 * preserve the contents of line[].
138 /* Terminate line[] at the comment character */
140 } else if ((line[strlen(line) - 1] != '\n') &&
141 (strlen(line) >= (sizeof (line) - 1))) {
144 * line with no '\n' at the end of the input.
149 "bytes on line %d, ignored\n",
150 cmd, sizeof (line) - 2, lineno);
155 while ((fgetsp = fgets(line, sizeof (line),
157 if (line[strlen(line) - 1] == '\n')
164 if (sscanf(line, "%s", adr) != 1) { /* Blank line, ignore */
168 if ((trailer = strpbrk(line, " \t")) == NULL) {
171 "%s: Warning: no host names on line %d, "
208 " line %d, ignored\n",
251 "line %d, line discarded\n",
280 "host names on line %d, "
297 "reached on line %d, truncating\n",
322 "%s: Warning: no host names on line %d, "