BCMP(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

Bcmp - compare two UBF buffers

2. SYNOPSIS

#include <ubf.h>

int Bcmp (UBFH *p_ubf1, UBFH *p_ubf2);

Link with -lubf -lnstd -lm -lpthread

3. DESCRIPTION

Compares two UBF buffers.

4. RETURN VALUE

If buffer are equal, value 0 is returned. If p_ubf1 have lesser fields, field id is lesser than p_ubf2 or value of field is lesser than p_ubf2 then -1 is returned. In the same way if p_ubf1 is greater p_buf2, then value 1 is returned.

5. ERRORS

In case of error Berror will be non 0. Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.

BEINVAL p_ubf1 or p_ubf2 are NULL pointers.

BNOTFLD p_ubf1 or p_ubf2 buffers not fielded, not correctly allocated or corrupted.

6. EXAMPLE

See ubftest/test_bcmp.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Bsubset(3)

9. COPYING

© Mavimax, Ltd