Searched refs:b_buf (Results 1 – 1 of 1) sorted by relevance
88 struct beginning_buf b_buf; member107 static int add_line_to_linear_buf(struct beginning_buf* b_buf, char* line, ssize_t line_len) { in add_line_to_linear_buf() argument110 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf()114 memcpy(b_buf->buf + b_buf->used_len, line, line_len); in add_line_to_linear_buf()115 b_buf->used_len += line_len; in add_line_to_linear_buf()220 a_buf->b_buf.buf = new_buf; in init_abbr_buf()221 a_buf->b_buf.alloc_len = BEGINNING_BUF_SIZE; in init_abbr_buf()222 a_buf->b_buf.buf_size = BEGINNING_BUF_SIZE - 1; in init_abbr_buf()233 free(a_buf->b_buf.buf); in free_abbr_buf()239 a_buf->beginning_buf_full = add_line_to_linear_buf(&a_buf->b_buf, linebuf, linelen); in add_line_to_abbr_buf()[all …]