---
name: "bson_oid_equal"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_oid_equal"
---

# bson\_oid\_equal(3)

## SYNOPSIS

```
bool
bson_oid_equal (const bson_oid_t *oid1, const bson_oid_t *oid2);
```

## PARAMETERS

- •

  **oid1**: A *bson\_oid\_t*.

- •

  **oid2**: A *bson\_oid\_t*.

## DESCRIPTION

Checks if two bson\_oid\_t contain the same bytes.

## RETURNS

true if they are equal, otherwise false.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
