SYNOPSIS

#include <bson.h>

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

DESCRIPTION

The bson_oid_is_valid() function shall return TRUE if str is a valid hex-encoded OID string.

length should be 24 bytes, but is provided as convenience for language bindings.

RETURN VALUE

TRUE if str is a valid hex-encoded OID string. Otherwise FALSE.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.