DOKK / manpages / debian 12 / libbson-doc / bson_iter_key.3.en
BSON_ITER_KEY(3) libbson BSON_ITER_KEY(3)

bson_iter_key - bson_iter_key()

const char *
bson_iter_key (const bson_iter_t *iter);


iter: A bson_iter_t.

Fetches the key for the current element observed by iter.

A string which should not be modified or freed.

SEE ALSO:

bson_iter_key_len() to retrieve the length of the key in constant time.



MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1