Bvcpy — perform VIEW buffer copy from one to another
#include <ubf.h>
long Bvcpy(char *cstruct_dst, char *cstruct_src, char *view)
Link with -lubf -lnstd -lm -lpthread
Function copies memory data from VIEW/C structure instances of cstruct_src to cstruct_dst instance. The size to copy is taken from view name. Note that it is up to developer to ensure that both buffers are in correct size, otherwise memory overflow is possible and program might terminate with segmentation fault.
On success, Bvcpy() return number of bytes copied; on error, -1 is returned, with Berror set to indicate the error.