Table of Contents
#include <ubf.h>
UBFH * Brealloc (UBFH *p_ub, BFLDOCC f, BFLDLEN v);
Link with -lubf -lnstd -lm -lpthread
Reallocates UBF buffer to store the number of fields of f with total data length of v bytes, length must include zero terminator byte for strings.
On success, Brealloc() returns pointer to UBF buffer; on error, NULL 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.
BEINVAL Buffer is shorter than currently bytes used, or the total size of bigger than MAXUBFLEN.
BMALLOC Malloc failed.
Report bugs to support@mavimax.com