DOKK / manpages / debian 11 / libmongoc-doc / mongoc_uri_new.3.en
MONGOC_URI_NEW(3) libmongoc MONGOC_URI_NEW(3)

mongoc_uri_new - mongoc_uri_new()

mongoc_uri_t *
mongoc_uri_new (const char *uri_string) BSON_GNUC_WARN_UNUSED_RESULT;


uri_string: A string containing a URI.

Calls mongoc_uri_new_with_error.

A newly allocated mongoc_uri_t if successful. Otherwise NULL, using MONGOC_WARNING on error.

WARNING:

Failure to handle the result of this function is a programming error.


MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6