Bcpy — perform buffer copy from one to another
#include <ubf.h>
int Bcpy (UBFH *p_ub_dst, UBFH *p_ub_src);
Link with -lubf -lnstd -lm -lpthread
This function copies content from p_ub_src to p_ub_dst buffer.
On success, Bcpy() return zero; on error, -1 is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BNOTFLD Source or dest buffer not fielded, not correctly allocated or corrupted.
BNOSPACE No space left in target buffer.
See ubftest/test_genbuf.c for sample code.
Report bugs to support@mavimax.com
Bprojcpy(3) Binit(3)
© Mavimax, Ltd