NAME

catbuf_join - merge two data buffers

SYNOPSIS

#include <cat.h>

cat_buffer *catbuf_join(cat_buffer *b1, cat_buffer *b2);

DESCRIPTION

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().

RETURN VALUES

Returns the resulting buffer, or NULL if both arguments were NULL.

SEE ALSO

cat, catbuf, catbuf_split