DOKK / manpages / debian 12 / libbson-doc / bson_oid_is_valid.3.en
BSON_OID_IS_VALID(3) libbson BSON_OID_IS_VALID(3)

bson_oid_is_valid - bson_oid_is_valid()

bool
bson_oid_is_valid (const char *str, size_t length);


  • str: A string.
  • length: The length of str.

Checks if a string containing a hex encoded string is a valid BSON ObjectID.

true if str could be parsed.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1