---
name: "bson_iter_dbpointer"
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_iter_dbpointer"
---

# bson\_iter\_dbpointer(3)

## SYNOPSIS

```
void
bson_iter_dbpointer (const bson_iter_t *iter,
                     uint32_t *collection_len,
                     const char **collection,
                     const bson_oid_t **oid);
```

## PARAMETERS

- •

  **iter**: A *bson\_iter\_t*.

- •

  **collection\_len**: A location for the length of the collection name.

- •

  **collection**: A location for the collection name..

- •

  **oid**: A location for a *bson\_oid\_t*.

## DESCRIPTION

Fetches the contents of a BSON\_TYPE\_DBPOINTER element.

**WARNING:**

The BSON\_TYPE\_DBPOINTER field type is deprecated by the BSON spec and should not be used in new code.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
