User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bcpy.3

bcpy

Name

Bcpy — perform buffer copy from one to another

Synopsis

#include <ubf.h>

int Bcpy (UBFH *p_ub_dst, UBFH *p_ub_src);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

This function copies content from p_ub_src to p_ub_dst buffer.

RETURN VALUE

On success, Bcpy() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

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.

EXAMPLE

See ubftest/test_genbuf.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd