1MONGOC_URI_COPY(3) libmongoc MONGOC_URI_COPY(3)
23
4
NAME
6mongoc_uri_copy - mongoc_uri_copy()
7
SYNOPSIS
9mongoc_uri_t *
10mongoc_uri_copy (const mongoc_uri_t *uri) BSON_GNUC_WARN_UNUSED_RESULT;
11
PARAMETERS
13• uri: A mongoc_uri_t.
14
DESCRIPTION
16Copies the entire contents of a URI.
17
RETURNS
19A newly allocated mongoc_uri_t that should be freed with
20mongoc_uri_destroy(). May return NULL on invalid host.
21
AUTHOR
23MongoDB, Inc
24
COPYRIGHT
262017-present, MongoDB, Inc
2728
29
30
31
1.24.3 Aug 17, 2023 MONGOC_URI_COPY(3)