Lines Matching refs:buffer
279 irs_irp_read_line(struct irp_p *pvt, char *buffer, int len) {
296 * and append new data to buffer
326 /* full buffer and still no newline */
335 memcpy(buffer + buffpos, start, i);
338 buffer[buffpos] = '\0';
348 fprintf(stderr, "read line: %s\n", buffer);
404 * Pointer to null-terminated buffer allocated by memget.
405 * *SIZE is set to the length of the buffer.
414 char *buffer = memget(len);
417 if (buffer == NULL)
439 buffer[idx] = '\0';
441 return (buffer);
449 memcpy(p, buffer, len);
450 memput(buffer, len);
451 buffer = p;
455 memcpy(buffer + idx, line, linelen);
459 memput(buffer, len);
469 * body buffer is allcoated with memget and stored in
470 * *BODY. The length of the allocated body buffer is stored
471 * in *BODY. The caller must give the body buffer back to
521 char buffer[1024];
531 (void) vsprintf(buffer, fmt, ap);
532 todo = strlen(buffer);
534 if (todo > (int)sizeof(buffer) - 3) {
538 strcat(buffer, "\r\n");
539 todo = strlen(buffer);
542 i = write(pvt->fdCxn, buffer + pos, todo);
546 fwrite(buffer + pos, sizeof (char), todo, stderr);