mongoc_uri_t *
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 MONGOC_URI_COPY(3)
Description
Copies the entire contents of a URI.
Parameters
• uri: A mongoc_uri_t.
Returns
A newly allocated mongoc_uri_t that should be freed with mongoc_uri_destroy(). May return NULL on invalid
host.
Synopsis
mongoc_uri_t *
mongoc_uri_copy (const mongoc_uri_t *uri);
