bson_oid_is_valid (3) - Linux Manuals

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

NAME

bson_oid_is_valid() - Checks if a string containing a hex encoded string is a valid BSON ObjectID.

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.

COLOPHON

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.