DOKK / manpages / debian 11 / libbson-doc / bson_iter_find_w_len.3.en
BSON_ITER_FIND_W_LEN(3) libbson BSON_ITER_FIND_W_LEN(3)

bson_iter_find_w_len - bson_iter_find_w_len()

bool
bson_iter_find_w_len (bson_iter_t *iter, const char *key, int keylen);


  • iter: A bson_iter_t.
  • key: A string containing the requested key.
  • keylen: An integer indicating the length of the key string.

The bson_iter_find_w_len() function shall advance iter to the element named key or exhaust all elements of iter. If iter is exhausted, false is returned and iter should be considered invalid.

key is case-sensitive. For a case-folded version, see bson_iter_find_case().

true is returned if the requested key was found. If not, iter was exhausted and should now be considered invalid.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6