User Tools

Site Tools


Sidebar

Table Of Contents

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

bmkfldid

Name

Bmkfldid — Compile field id

Synopsis

#include <ubf.h>

BFLDID Bmkfldid (int fldtype, BFLDID bfldid);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Compile the field id by given type in fldtype and field id (not compiled) in bfldid. The compiled field id consists of type (moved to oldest 3 bits) and binary ored field id.

RETURN VALUE

On success, Bmkfldid() return compiled filed id; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

No errors returned by this function.

EXAMPLE

See ubftest/ubfunit1.c for sample code.

BUGS

Report bugs to support@mavimax.com

SEE ALSO

Bfname(3)

COPYING

© Mavimax, Ltd