Lines Matching defs:buf_ctrl
731 * This function concatenates append to the text described in the buf_ctrl
737 cat_and_count(struct dm_buf *buf_ctrl, char *append)
741 while ((buf_ctrl->offset + (int)strlen(append))
742 >= buf_ctrl->allocation) {
744 if ((buf_ctrl->text_buffer =
745 (char *)realloc(buf_ctrl->text_buffer,
746 buf_ctrl->allocation + BLK_SIZE)) == NULL) {
749 free(buf_ctrl->text_buffer);
754 (void) memset(buf_ctrl->text_buffer +
755 buf_ctrl->allocation, '\0', BLK_SIZE);
758 buf_ctrl->allocation += BLK_SIZE;
763 *(buf_ctrl->text_buffer + buf_ctrl->offset) = *append++;
764 (buf_ctrl->offset)++;