Back to home page

Enduro/X

 
 

    


0001 BCMP(3)
0002 =======
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 Bcmp - compare two UBF buffers
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 
0014 #include <ubf.h>
0015 
0016 int Bcmp (UBFH *'p_ubf1', UBFH *'p_ubf2');
0017 
0018 Link with '-lubf -lnstd -lm -lpthread'
0019 
0020 DESCRIPTION
0021 -----------
0022 Compares two UBF buffers. 
0023 
0024 RETURN VALUE
0025 ------------
0026 If buffer are equal, value *0* is returned. If 'p_ubf1' have lesser fields,
0027 field id is lesser than 'p_ubf2' or value of field is lesser than 'p_ubf2' then
0028 *-1* is returned. In the same way if 'p_ubf1' is greater 'p_buf2', then value
0029 *1* is returned. In case of error *-2* is returned.
0030 
0031 ERRORS
0032 ------
0033 For error *-2* is returned and *Berror* will be non *0*. Note that *Bstrerror()* returns 
0034 generic error message plus custom message with  debug info from last function call.
0035 
0036 *BEINVAL* 'p_ubf1' or 'p_ubf2' are NULL pointers.
0037 
0038 *BNOTFLD* 'p_ubf1' or 'p_ubf2' buffers not fielded, not correctly allocated or corrupted.
0039 
0040 EXAMPLE
0041 -------
0042 See *ubftest/test_bcmp.c* for sample code.
0043 
0044 BUGS
0045 ----
0046 Report bugs to support@mavimax.com
0047 
0048 SEE ALSO
0049 --------
0050 *Bsubset(3)*
0051 
0052 COPYING
0053 -------
0054 (C) Mavimax, Ltd
0055