Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
bool
bson_oid_is_valid (const char *str, size_t length);
PARAMETERS
• str: A string.
• length: The length of str.
DESCRIPTION
Checks if a string containing a hex encoded string is a valid BSON ObjectID.
RETURNS
true if str could be parsed.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_OID_IS_VALID(3)