Lines Matching refs:buf_ctrl
594 cat_and_count(struct dm_buf *buf_ctrl, char *append) in cat_and_count() argument
598 while ((buf_ctrl->offset + (int)strlen(append)) in cat_and_count()
599 >= buf_ctrl->allocation) { in cat_and_count()
601 if ((buf_ctrl->text_buffer = in cat_and_count()
602 (char *)realloc(buf_ctrl->text_buffer, in cat_and_count()
603 buf_ctrl->allocation + BLK_SIZE)) == NULL) { in cat_and_count()
606 free(buf_ctrl->text_buffer); in cat_and_count()
611 (void) memset(buf_ctrl->text_buffer + in cat_and_count()
612 buf_ctrl->allocation, '\0', BLK_SIZE); in cat_and_count()
615 buf_ctrl->allocation += BLK_SIZE; in cat_and_count()
620 *(buf_ctrl->text_buffer + buf_ctrl->offset) = *append++; in cat_and_count()
621 (buf_ctrl->offset)++; in cat_and_count()