---
name: "bson_iter_init_find_w_len"
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_init_find_w_len"
---

# bson\_iter\_init\_find\_w\_len(3)

## SYNOPSIS

```
bool
bson_iter_init_find_w_len (bson_iter_t *iter,
                           const bson_t *bson,
                           const char *key,
                           int keylen);
```

## PARAMETERS

- •

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

- •

  **bson**: A *bson\_t*.

- •

  **key**: A key to locate after initializing the iter.

- •

  **keylen**: An integer indicating the length of the key string.

## DESCRIPTION

This function is identical to **(bson\_iter\_init() && bson\_iter\_find\_w\_len())**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
