BUPDATE(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

Bupdate - buffer update

2. SYNOPSIS

#include <ubf.h>

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

Link with -lubf -lnstd -lm -lpthread

3. DESCRIPTION

Update destination buffer in p_ub_dst with source buffer p_ub_src values. Function will update existing fields from source buffer to destination with matching occurrences. If field does not exist or occurrence does not exists, then field will be added to given occurrence (doing Bchg(3)).

4. RETURN VALUE

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

5. 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.

6. EXAMPLE

See ubftest/test_bupdate.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Bproj(3) Binit(3) Bchg(3) Bnext(3) Bconcat(3)

9. COPYING

© Mavimax, Ltd