User Tools

Site Tools


Sidebar

Table Of Contents

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

bconcat

Name

Bconcat — Concatinate UBF buffers

Synopsis

#include <ubf.h>

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

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Concatenate source buffer in p_ub_src to destination buffer in p_ub_dst. Function will add any field from source buffer to destination buffer by using Badd(3) function call.

RETURN VALUE

On success, Bproj() 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.

BALIGNERR Source or dest buffer corrupted or pointing to not aligned memory area.

BNOTFLD Source or dest buffer not fielded, not correctly allocated or corrupted.

BNOSPACE No space left in target buffer.

EXAMPLE

See ubftest/test_bconcat.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd