bson_oid_init_from_string man page

bson_oid_init_from_string() — Parses the string containing hex encoded oid and initialize the bytes in oid.

Synopsis

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

Parameters

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

Description

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

Example

bson_oid_init_from_string (&oid, "012345678901234567890123");

Colophon

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

Referenced By

bson_oid_t(3).

2016‐10‐28 libbson