bson_oid_is_valid man page

bson_oid_is_valid ā€” bson_oid_is_valid()

Synopsis

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

Parameters

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

Info

Sep 15, 2017 1.8.0 Libbson