DOKK / manpages / debian 13 / libbson-doc / bson_oid_init_from_string.3.en
BSON_OID_INIT_FROM_STRING(3) libbson BSON_OID_INIT_FROM_STRING(3)

void
bson_oid_init_from_string (bson_oid_t *oid, const char *str);


  • oid: A bson_oid_t.
  • str: A string containing a hex encoded version of the oid.

Parses the string containing hex encoded oid and initialize the bytes in oid.

bson_oid_init_from_string (&oid, "012345678901234567890123");


MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4