Table of Contents
#include <ubf.h>
int Bproj (UBFH * p_ub, BFLDID * fldlist);
Link with -lubf -lnstd -lm -lpthread
This function removes any un-needed field from buffer p_ub and keeps only the list of field identifiers found in fldlist array. The array must be terminated with BBADFLDID.
On success, Bproj() 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.
BALIGNERR Corrupted buffer or pointing to not aligned memory area.
BNOTFLD Buffer not fielded, not correctly allocated or corrupted.
Report bugs to support@mavimax.com