catbuf_join - merge two data buffers
#include <cat.h>
cat_buffer *catbuf_join(cat_buffer *b1, cat_buffer *b2);
catbuf_join() concatenates two buffers by appending the data from
b2 to the data in b1. Buffer b2 is destroyed. The resulting buffer will be associated with the session (if
any) that is associated with b1.
The corresponding operation to divide a buffer is catbuf_split().
Returns the resulting buffer, or NULL
if both arguments were
NULL
.
cat, catbuf, catbuf_split