Lines Matching defs:line
76 static int parse_line(char *line, char *argvec[], int argcount);
77 static int readline(FILE *fp, char *line, int length);
229 char line[MAXLINELEN];
249 while (readline(fp, line, sizeof (line)) != 0) {
250 (void) strncpy(pline, line, sizeof (pline));
263 /* Empty line - or comment only line */
377 * Read from fp. Handle \ at the end of the line by joining lines together.
381 readline(FILE *fp, char *line, int length)
387 if (fgets(line, length, fp) == NULL) {
396 got = strlen(line);
398 if (got >= 2 && line[got-2] == '\\') {
400 line += got - 2;
406 line[got-1] = '\0';
412 * Parse a line splitting it off at whitspace characters.
419 parse_line(char *line, char *argvec[], int argcount)
427 cp = strchr(line, '#');
433 while (isspace(*line) && *line != '\0')
434 line++;
436 if (*line == '\'') {
437 line++;
438 if (*line == '\0')
441 } else if (*line == '"') {
442 line++;
443 if (*line == '\0')
447 argvec[i] = line;
448 if (*line == '\0')
453 while (*line != '\'' && *line != '\0')
454 line++;
455 if (*line == '\'') {
456 *line = ' ';
466 while (*line != '"' && *line != '\0')
467 line++;
468 if (*line == '"') {
469 *line = ' ';
479 while (!isspace(*line) && *line != '\0')
480 line++;
482 if (*line != '\0') {
484 *line++ = '\0';
577 * Split up the line into <variable> <value> pairs
960 (void) snprintf(msg, NDPD_LOGMSGSIZE, "%s line %d: ",