Lines Matching defs:line
348 fprintf(stderr, "read line: %s\n", buffer);
358 * The number found at the beginning of the line read from
360 * rest of the line is discarded.
366 char line[1024];
370 if (irs_irp_read_line(pvt, line, sizeof line) <= 0) {
374 p = strchr(line, '\n');
379 if (sscanf(line, "%d", &code) != 1) {
382 p = line;
396 * Read in the body of a response. Terminated by a line with
411 char line[1024];
421 if (irs_irp_read_line(pvt, line, sizeof line) <= 0 ||
422 strchr(line, '\n') == NULL)
425 linelen = strlen(line);
427 if (line[linelen - 1] != '\n')
431 if (linelen > 2 && line[linelen - 2] == '\r') {
432 line[linelen - 2] = '\n';
433 line[linelen - 1] = '\0';
437 if (linelen == 2 && line[0] == '.') {
455 memcpy(buffer + idx, line, linelen);