Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
BSON_COMPARE(3)			    libbson		       BSON_COMPARE(3)

SYNOPSIS
	  int
	  bson_compare (const bson_t *bson, const bson_t *other);

PARAMETERS
        bson: A bson_t.

        other:	A bson_t.

DESCRIPTION
       The bson_compare() function shall compare two bson documents for	equal-
       ity.

       This can	be useful in conjunction with _qsort()_.

       If equal, 0 is returned.

       TIP:
	  This	function  uses _memcmp()_ internally, so the semantics are the
	  same.

RETURNS
       less than zero, zero, or	greater	than zero in qsort() style.

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025		       BSON_COMPARE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bson_compare&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help