Lines Matching refs:buf_ctrl
730 * This function concatenates append to the text described in the buf_ctrl
736 cat_and_count(struct dm_buf *buf_ctrl, char *append)
740 while ((buf_ctrl->offset + (int)strlen(append))
741 >= buf_ctrl->allocation) {
743 if ((buf_ctrl->text_buffer =
744 (char *)realloc(buf_ctrl->text_buffer,
745 buf_ctrl->allocation + BLK_SIZE)) == NULL) {
748 free(buf_ctrl->text_buffer);
753 (void) memset(buf_ctrl->text_buffer +
754 buf_ctrl->allocation, '\0', BLK_SIZE);
757 buf_ctrl->allocation += BLK_SIZE;
762 *(buf_ctrl->text_buffer + buf_ctrl->offset) = *append++;
763 (buf_ctrl->offset)++;